Enum stm32_metapac::comp::vals::Hysteresis
#[repr(u8)]pub enum Hysteresis {
NONE = 0,
LOW = 1,
MEDIUM = 2,
HIGH = 3,
}
Variants§
Implementations§
§impl Hysteresis
impl Hysteresis
pub const fn from_bits(val: u8) -> Hysteresis
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for Hysteresis
impl Clone for Hysteresis
§fn clone(&self) -> Hysteresis
fn clone(&self) -> Hysteresis
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 more§impl From<Hysteresis> for u8
impl From<Hysteresis> for u8
§fn from(val: Hysteresis) -> u8
fn from(val: Hysteresis) -> u8
Converts to this type from the input type.
§impl From<u8> for Hysteresis
impl From<u8> for Hysteresis
§fn from(val: u8) -> Hysteresis
fn from(val: u8) -> Hysteresis
Converts to this type from the input type.
§impl Ord for Hysteresis
impl Ord for Hysteresis
§impl PartialEq for Hysteresis
impl PartialEq for Hysteresis
§impl PartialOrd for Hysteresis
impl PartialOrd for Hysteresis
impl Copy for Hysteresis
impl Eq for Hysteresis
impl StructuralPartialEq for Hysteresis
Auto Trait Implementations§
impl Freeze for Hysteresis
impl RefUnwindSafe for Hysteresis
impl Send for Hysteresis
impl Sync for Hysteresis
impl Unpin for Hysteresis
impl UnwindSafe for Hysteresis
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
)