Enum stm32_metapac::gpio::vals::CnfIn
#[repr(u8)]pub enum CnfIn {
ANALOG = 0,
FLOATING = 1,
PULL = 2,
_RESERVED_3 = 3,
}
Variants§
ANALOG = 0
Analog mode
FLOATING = 1
Floating input (reset state)
PULL = 2
Input with pull-up/pull-down
_RESERVED_3 = 3
Implementations§
Trait Implementations§
§impl Ord for CnfIn
impl Ord for CnfIn
§impl PartialOrd for CnfIn
impl PartialOrd for CnfIn
§fn partial_cmp(&self, other: &CnfIn) -> Option<Ordering>
fn partial_cmp(&self, other: &CnfIn) -> 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 CnfIn
impl Eq for CnfIn
impl StructuralPartialEq for CnfIn
Auto Trait Implementations§
impl Freeze for CnfIn
impl RefUnwindSafe for CnfIn
impl Send for CnfIn
impl Sync for CnfIn
impl Unpin for CnfIn
impl UnwindSafe for CnfIn
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