Enum SampleTime
#[repr(u8)]pub enum SampleTime {
Cycles15 = 0,
Cycles75 = 1,
Cycles135 = 2,
Cycles285 = 3,
Cycles415 = 4,
Cycles555 = 5,
Cycles715 = 6,
Cycles2395 = 7,
}Variants§
Cycles15 = 0
1.5 cycles
Cycles75 = 1
7.5 cycles
Cycles135 = 2
13.5 cycles
Cycles285 = 3
28.5 cycles
Cycles415 = 4
41.5 cycles
Cycles555 = 5
55.5 cycles
Cycles715 = 6
71.5 cycles
Cycles2395 = 7
239.5 cycles
Implementations§
§impl SampleTime
impl SampleTime
pub const fn from_bits(val: u8) -> SampleTime
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for SampleTime
impl Clone for SampleTime
§fn clone(&self) -> SampleTime
fn clone(&self) -> SampleTime
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 SampleTime
§impl Debug for SampleTime
impl Debug for SampleTime
impl Eq for SampleTime
§impl Format for SampleTime
impl Format for SampleTime
§impl From<u8> for SampleTime
impl From<u8> for SampleTime
§fn from(val: u8) -> SampleTime
fn from(val: u8) -> SampleTime
Converts to this type from the input type.
§impl Ord for SampleTime
impl Ord for SampleTime
§fn cmp(&self, other: &SampleTime) -> Ordering
fn cmp(&self, other: &SampleTime) -> 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 SampleTime
impl PartialEq for SampleTime
§impl PartialOrd for SampleTime
impl PartialOrd for SampleTime
impl StructuralPartialEq for SampleTime
Auto Trait Implementations§
impl Freeze for SampleTime
impl RefUnwindSafe for SampleTime
impl Send for SampleTime
impl Sync for SampleTime
impl Unpin for SampleTime
impl UnsafeUnpin for SampleTime
impl UnwindSafe for SampleTime
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