Enum stm32_metapac::usb::vals::Dir
#[repr(u8)]pub enum Dir {
TO = 0,
FROM = 1,
}
Variants§
TO = 0
data transmitted by the USB peripheral to the host PC
FROM = 1
data received by the USB peripheral from the host PC
Implementations§
Trait Implementations§
§impl Ord for Dir
impl Ord for Dir
§impl PartialOrd for Dir
impl PartialOrd for Dir
§fn partial_cmp(&self, other: &Dir) -> Option<Ordering>
fn partial_cmp(&self, other: &Dir) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Dir
impl Eq for Dir
impl StructuralPartialEq for Dir
Auto Trait Implementations§
impl Freeze for Dir
impl RefUnwindSafe for Dir
impl Send for Dir
impl Sync for Dir
impl Unpin for Dir
impl UnwindSafe for Dir
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