Enum stm32_metapac::gpio::vals::Moder
#[repr(u8)]pub enum Moder {
INPUT = 0,
OUTPUT = 1,
ALTERNATE = 2,
ANALOG = 3,
}
Variants§
INPUT = 0
Input mode (reset state)
OUTPUT = 1
General purpose output mode
ALTERNATE = 2
Alternate function mode
ANALOG = 3
Analog mode
Implementations§
Trait Implementations§
§impl Ord for Moder
impl Ord for Moder
§impl PartialOrd for Moder
impl PartialOrd for Moder
§fn partial_cmp(&self, other: &Moder) -> Option<Ordering>
fn partial_cmp(&self, other: &Moder) -> 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 Moder
impl Eq for Moder
impl StructuralEq for Moder
impl StructuralPartialEq for Moder
Auto Trait Implementations§
impl RefUnwindSafe for Moder
impl Send for Moder
impl Sync for Moder
impl Unpin for Moder
impl UnwindSafe for Moder
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