pub enum CharSize {
Bits5,
Bits6,
Bits7,
Bits8,
}
Expand description
The number of bits per character for a serial port.
Variants
Bits5
Characters of 5 bits.
Bits6
Characters of 6 bits.
Bits7
Characters of 7 bits.
Bits8
Characters of 8 bits.
Trait Implementations
sourceimpl Ord for CharSize
impl Ord for CharSize
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<CharSize> for CharSize
impl PartialOrd<CharSize> for CharSize
sourcefn partial_cmp(&self, other: &CharSize) -> Option<Ordering>
fn partial_cmp(&self, other: &CharSize) -> Option<Ordering>
1.0.0 · sourcefn 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 StructuralEq for CharSize
impl StructuralPartialEq for CharSize
Auto Trait Implementations
impl RefUnwindSafe for CharSize
impl Send for CharSize
impl Sync for CharSize
impl Unpin for CharSize
impl UnwindSafe for CharSize
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more