#[repr(u32)]pub enum TimeUnit {
MS = 1,
PCM = 2,
PCMBytes = 4,
RawBytes = 8,
PCMFraction = 16,
ModOrder = 256,
ModRow = 512,
ModPattern = 1_024,
}Variants§
MS = 1
PCM = 2
PCMBytes = 4
RawBytes = 8
PCMFraction = 16
ModOrder = 256
ModRow = 512
ModPattern = 1_024
Trait Implementations§
source§impl PartialEq for TimeUnit
impl PartialEq for TimeUnit
source§impl TryFrom<u32> for TimeUnit
impl TryFrom<u32> for TimeUnit
§type Error = TryFromPrimitiveError<TimeUnit>
type Error = TryFromPrimitiveError<TimeUnit>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for TimeUnit
impl TryFromPrimitive for TimeUnit
source§impl UnsafeFromPrimitive for TimeUnit
impl UnsafeFromPrimitive for TimeUnit
type Primitive = u32
source§unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
Transmutes into an enum from its primitive. Read more
source§unsafe fn from_unchecked(number: Self::Primitive) -> Self
unsafe fn from_unchecked(number: Self::Primitive) -> Self
👎Deprecated since 0.6.0: Prefer to use
unchecked_transmute_from, from_unchecked will be removed in a future release.Transmutes into an enum from its primitive. Read more
impl Copy for TimeUnit
impl Eq for TimeUnit
impl StructuralPartialEq for TimeUnit
Auto Trait Implementations§
impl Freeze for TimeUnit
impl RefUnwindSafe for TimeUnit
impl Send for TimeUnit
impl Sync for TimeUnit
impl Unpin for TimeUnit
impl UnwindSafe for TimeUnit
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