Enum Discardmode
#[repr(u8)]pub enum Discardmode {
DISCARD_END = 0,
DISCARD_START = 1,
}
Variants§
DISCARD_END = 0
Unused bits are discarded at end of frame (EoF)
DISCARD_START = 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 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 more§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
§impl PartialEq for Discardmode
impl PartialEq for Discardmode
§impl PartialOrd for Discardmode
impl PartialOrd for Discardmode
impl Copy for Discardmode
impl Eq 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)