Struct capsules::usb::LanguagesDescriptor
[−]
[src]
pub struct LanguagesDescriptor<'a> { pub langs: &'a [u16], }
Fields
langs: &'a [u16]
Trait Implementations
impl<'a> Descriptor for LanguagesDescriptor<'a>
[src]
fn size(&self) -> usize
[src]
Serialized size of Descriptor
fn write_to_unchecked(&self, buf: &[Cell<u8>]) -> usize
[src]
Same as write_to()
, but doesn't check that buf
is long enough before indexing into it. This should be used only if the result of size()
is first consulted. Read more
fn write_to(&self, buf: &[Cell<u8>]) -> usize
[src]
Serialize the descriptor to a buffer for transmission on the bus