pub enum Parity {
None = 0,
Odd = 1,
Even = 2,
}
Expand description
Parity bit configuration.
Variants§
None = 0
No parity bits.
Odd = 1
Add a parity bit to ensure an odd number of 1 bits in the word.
Even = 2
Add a parity bit to ensure an even number of 1 bits in the word.
Trait Implementations§
impl Copy for Parity
impl StructuralPartialEq for Parity
Auto Trait Implementations§
impl Freeze for Parity
impl RefUnwindSafe for Parity
impl Send for Parity
impl Sync for Parity
impl Unpin for Parity
impl UnwindSafe for Parity
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