#[repr(transparent)]pub struct StringIndex(pub u8);
Expand description
A handle for a USB string descriptor that contains its index.
Tuple Fields§
§0: u8
Trait Implementations§
Source§impl Clone for StringIndex
impl Clone for StringIndex
Source§fn clone(&self) -> StringIndex
fn clone(&self) -> StringIndex
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Format for StringIndex
impl Format for StringIndex
Source§impl From<StringIndex> for u8
impl From<StringIndex> for u8
Source§fn from(i: StringIndex) -> u8
fn from(i: StringIndex) -> u8
Converts to this type from the input type.
Source§impl PartialEq for StringIndex
impl PartialEq for StringIndex
impl Copy for StringIndex
impl Eq for StringIndex
impl StructuralPartialEq for StringIndex
Auto Trait Implementations§
impl Freeze for StringIndex
impl RefUnwindSafe for StringIndex
impl Send for StringIndex
impl Sync for StringIndex
impl Unpin for StringIndex
impl UnwindSafe for StringIndex
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more