pub trait EncodeItem {
// Required method
fn encode(&self) -> DescriptorBytes;
}Expand description
A trait for items that can be encoded into the HID report descriptor binary format.
Required Methods§
Sourcefn encode(&self) -> DescriptorBytes
fn encode(&self) -> DescriptorBytes
Encode the item into a sequence of bytes.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".