pub enum ParityType {
None = 0,
Odd = 1,
Even = 2,
Mark = 3,
Space = 4,
}
Expand description
Parity for LineCoding
Variants§
None = 0
No parity bit.
Odd = 1
Parity bit is 1 if the amount of 1
bits in the data byte is odd.
Even = 2
Parity bit is 1 if the amount of 1
bits in the data byte is even.
Mark = 3
Parity bit is always 1
Space = 4
Parity bit is always 0
Trait Implementations§
Source§impl Clone for ParityType
impl Clone for ParityType
Source§fn clone(&self) -> ParityType
fn clone(&self) -> ParityType
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 moreSource§impl Debug for ParityType
impl Debug for ParityType
Source§impl Format for ParityType
impl Format for ParityType
Source§impl From<u8> for ParityType
impl From<u8> for ParityType
Source§impl PartialEq for ParityType
impl PartialEq for ParityType
impl Copy for ParityType
impl Eq for ParityType
impl StructuralPartialEq for ParityType
Auto Trait Implementations§
impl Freeze for ParityType
impl RefUnwindSafe for ParityType
impl Send for ParityType
impl Sync for ParityType
impl Unpin for ParityType
impl UnwindSafe for ParityType
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