Enum Samplingstate
#[repr(u8)]pub enum Samplingstate {
Idle = 0,
Sampling = 1,
}Variants§
Implementations§
§impl Samplingstate
impl Samplingstate
pub const fn from_bits(val: u8) -> Samplingstate
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for Samplingstate
impl Clone for Samplingstate
§fn clone(&self) -> Samplingstate
fn clone(&self) -> Samplingstate
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 Samplingstate
§impl Debug for Samplingstate
impl Debug for Samplingstate
impl Eq for Samplingstate
§impl From<u8> for Samplingstate
impl From<u8> for Samplingstate
§fn from(val: u8) -> Samplingstate
fn from(val: u8) -> Samplingstate
Converts to this type from the input type.
§impl Ord for Samplingstate
impl Ord for Samplingstate
§fn cmp(&self, other: &Samplingstate) -> Ordering
fn cmp(&self, other: &Samplingstate) -> 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 Samplingstate
impl PartialEq for Samplingstate
§impl PartialOrd for Samplingstate
impl PartialOrd for Samplingstate
impl StructuralPartialEq for Samplingstate
Auto Trait Implementations§
impl Freeze for Samplingstate
impl RefUnwindSafe for Samplingstate
impl Send for Samplingstate
impl Sync for Samplingstate
impl Unpin for Samplingstate
impl UnsafeUnpin for Samplingstate
impl UnwindSafe for Samplingstate
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