Enum Parity
#[repr(u8)]pub enum Parity {
EXCLUDED = 0,
_RESERVED_1 = 1,
_RESERVED_2 = 2,
_RESERVED_3 = 3,
_RESERVED_4 = 4,
_RESERVED_5 = 5,
_RESERVED_6 = 6,
INCLUDED = 7,
}
Variants§
EXCLUDED = 0
Exclude parity bit
_RESERVED_1 = 1
_RESERVED_2 = 2
_RESERVED_3 = 3
_RESERVED_4 = 4
_RESERVED_5 = 5
_RESERVED_6 = 6
INCLUDED = 7
Include even parity bit
Implementations§
§impl ConfigParity
impl ConfigParity
pub const fn from_bits(val: u8) -> ConfigParity
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for ConfigParity
impl Clone for ConfigParity
§fn clone(&self) -> ConfigParity
fn clone(&self) -> ConfigParity
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<u8> for ConfigParity
impl From<u8> for ConfigParity
§fn from(val: u8) -> ConfigParity
fn from(val: u8) -> ConfigParity
Converts to this type from the input type.
§impl Ord for ConfigParity
impl Ord for ConfigParity
§impl PartialEq for ConfigParity
impl PartialEq for ConfigParity
§impl PartialOrd for ConfigParity
impl PartialOrd for ConfigParity
impl Copy for ConfigParity
impl Eq for ConfigParity
impl StructuralPartialEq for ConfigParity
Auto Trait Implementations§
impl Freeze for ConfigParity
impl RefUnwindSafe for ConfigParity
impl Send for ConfigParity
impl Sync for ConfigParity
impl Unpin for ConfigParity
impl UnwindSafe for ConfigParity
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