#[repr(transparent)]pub struct InterfaceNumber(pub u8);
Expand description
A handle for a USB interface that contains its number.
Tuple Fields§
§0: u8
Trait Implementations§
Source§impl Clone for InterfaceNumber
impl Clone for InterfaceNumber
Source§fn clone(&self) -> InterfaceNumber
fn clone(&self) -> InterfaceNumber
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 Debug for InterfaceNumber
impl Debug for InterfaceNumber
Source§impl Format for InterfaceNumber
impl Format for InterfaceNumber
Source§impl From<InterfaceNumber> for u8
impl From<InterfaceNumber> for u8
Source§fn from(n: InterfaceNumber) -> u8
fn from(n: InterfaceNumber) -> u8
Converts to this type from the input type.
Source§impl PartialEq for InterfaceNumber
impl PartialEq for InterfaceNumber
impl Copy for InterfaceNumber
impl Eq for InterfaceNumber
impl StructuralPartialEq for InterfaceNumber
Auto Trait Implementations§
impl Freeze for InterfaceNumber
impl RefUnwindSafe for InterfaceNumber
impl Send for InterfaceNumber
impl Sync for InterfaceNumber
impl Unpin for InterfaceNumber
impl UnwindSafe for InterfaceNumber
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)