Enum DiscardMode
#[repr(u8)]pub enum DiscardMode {
DiscardEnd = 0,
DiscardStart = 1,
}Variants§
DiscardEnd = 0
Unused bits are discarded at end of frame (EoF).
DiscardStart = 1
Unused bits are discarded at start of frame (SoF).
Implementations§
§impl Discardmode
impl Discardmode
pub const fn from_bits(val: u8) -> Discardmode
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for Discardmode
impl Clone for Discardmode
§fn clone(&self) -> Discardmode
fn clone(&self) -> Discardmode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Discardmode
§impl Debug for Discardmode
impl Debug for Discardmode
impl Eq for Discardmode
§impl From<u8> for Discardmode
impl From<u8> for Discardmode
§fn from(val: u8) -> Discardmode
fn from(val: u8) -> Discardmode
Converts to this type from the input type.
§impl Ord for Discardmode
impl Ord for Discardmode
§fn cmp(&self, other: &Discardmode) -> Ordering
fn cmp(&self, other: &Discardmode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for Discardmode
impl PartialEq for Discardmode
§impl PartialOrd for Discardmode
impl PartialOrd for Discardmode
impl StructuralPartialEq for Discardmode
Auto Trait Implementations§
impl Freeze for Discardmode
impl RefUnwindSafe for Discardmode
impl Send for Discardmode
impl Sync for Discardmode
impl Unpin for Discardmode
impl UnsafeUnpin for Discardmode
impl UnwindSafe for Discardmode
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