pub trait DeviceWithEncoders {
type Layout: MaybeKeyboardLayout = EmptyKeyboardLayout;
const ENCODER_COUNT: usize;
// Required methods
fn get_encoders() -> [impl Encoder; Self::ENCODER_COUNT];
fn get_layout_mappings() -> [[(u8, u8); 3]; Self::ENCODER_COUNT];
}
Required Associated Constants§
const ENCODER_COUNT: usize
Provided Associated Types§
Required Methods§
fn get_encoders() -> [impl Encoder; Self::ENCODER_COUNT]
fn get_layout_mappings() -> [[(u8, u8); 3]; Self::ENCODER_COUNT]
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.