pub enum Parity {
None,
Even,
Odd,
Mark,
Space,
}
Expand description
Parity bit modes.
The parity bit mode determines how the parity bit is calculated.
None
omits the parity bit. Even
and Odd
count the total number of
1-bits in the data bits. Mark
and Space
always set the parity
bit to 1
or 0
respectively.
Variants§
None
No parity bit.
Even
Even parity.
Odd
Odd parity.
Mark
Sets parity bit to 1
.
Space
Sets parity bit to 0
.
Trait Implementations§
source§impl PartialEq<Parity> for Parity
impl PartialEq<Parity> for Parity
impl Copy for Parity
impl Eq for Parity
impl StructuralEq for Parity
impl StructuralPartialEq for Parity
Auto Trait Implementations§
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