#[repr(u8)]pub enum CharSize {
Bits5 = 5,
Bits6 = 6,
Bits7 = 7,
Bits8 = 8,
}
Expand description
The number of bits per character for a serial port.
Available on crate feature
serde
only:
This type supports (de)serialization as a number.
Variants§
Bits5 = 5
Characters of 5 bits.
Available on crate feature
serde
only:
This variant is (de)serialized as the number 5
.
Bits6 = 6
Characters of 6 bits.
Available on crate feature
serde
only:
This variant is (de)serialized as the number 7
.
Bits7 = 7
Characters of 7 bits.
Available on crate feature
serde
only:
This variant is (de)serialized as the number 7
.
Bits8 = 8
Characters of 8 bits.
Available on crate feature
serde
only:
This variant is (de)serialized as the number 8
.
Implementations§
Trait Implementations§
source§impl Ord for CharSize
impl Ord for CharSize
source§impl PartialEq for CharSize
impl PartialEq for CharSize
source§impl PartialOrd for CharSize
impl PartialOrd for CharSize
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for CharSize
impl Eq for CharSize
impl StructuralPartialEq for CharSize
Auto Trait Implementations§
impl Freeze for CharSize
impl RefUnwindSafe for CharSize
impl Send for CharSize
impl Sync for CharSize
impl Unpin for CharSize
impl UnwindSafe for CharSize
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