pub trait NecCommandVariant: Sized {
const PULSE_DISTANCE: &'static NecPulseLen;
// Required methods
fn validate(bits: u32) -> bool;
fn unpack(bits: u32, repeat: bool) -> Option<Self>;
fn pack(&self) -> u32;
}
Expand description
Nec Command Variant
Required Associated Constants§
const PULSE_DISTANCE: &'static NecPulseLen
Required Methods§
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.