Enum SramParityLock
#[repr(u8)]pub enum SramParityLock {
DISCONNECTED = 0,
CONNECTED = 1,
}
Variants§
DISCONNECTED = 0
SRAM parity error disconnected from TIM1/15/16/17 Break input
CONNECTED = 1
SRAM parity error connected to TIM1/15/16/17 Break input
Implementations§
§impl SramParityLock
impl SramParityLock
pub const fn from_bits(val: u8) -> SramParityLock
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for SramParityLock
impl Clone for SramParityLock
§fn clone(&self) -> SramParityLock
fn clone(&self) -> SramParityLock
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl From<SramParityLock> for u8
impl From<SramParityLock> for u8
§fn from(val: SramParityLock) -> u8
fn from(val: SramParityLock) -> u8
Converts to this type from the input type.
§impl From<u8> for SramParityLock
impl From<u8> for SramParityLock
§fn from(val: u8) -> SramParityLock
fn from(val: u8) -> SramParityLock
Converts to this type from the input type.
§impl Ord for SramParityLock
impl Ord for SramParityLock
§impl PartialEq for SramParityLock
impl PartialEq for SramParityLock
§impl PartialOrd for SramParityLock
impl PartialOrd for SramParityLock
impl Copy for SramParityLock
impl Eq for SramParityLock
impl StructuralPartialEq for SramParityLock
Auto Trait Implementations§
impl Freeze for SramParityLock
impl RefUnwindSafe for SramParityLock
impl Send for SramParityLock
impl Sync for SramParityLock
impl Unpin for SramParityLock
impl UnwindSafe for SramParityLock
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