Enum helgoboss_midi::TimeCodeType
source · [−]#[repr(u8)]
pub enum TimeCodeType {
Fps24,
Fps25,
Fps30DropFrame,
Fps30NonDrop,
}
Expand description
Possible time code types of a MIDI Time Code Quarter Frame message.
Variants
Fps24
Fps25
Fps30DropFrame
Fps30NonDrop
Trait Implementations
sourceimpl Clone for TimeCodeType
impl Clone for TimeCodeType
sourcefn clone(&self) -> TimeCodeType
fn clone(&self) -> TimeCodeType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TimeCodeType
impl Debug for TimeCodeType
sourceimpl From<TimeCodeType> for u8
impl From<TimeCodeType> for u8
sourcefn from(enum_value: TimeCodeType) -> Self
fn from(enum_value: TimeCodeType) -> Self
Converts to this type from the input type.
sourceimpl Hash for TimeCodeType
impl Hash for TimeCodeType
sourceimpl Ord for TimeCodeType
impl Ord for TimeCodeType
sourceimpl PartialEq<TimeCodeType> for TimeCodeType
impl PartialEq<TimeCodeType> for TimeCodeType
sourceimpl PartialOrd<TimeCodeType> for TimeCodeType
impl PartialOrd<TimeCodeType> for TimeCodeType
sourcefn partial_cmp(&self, other: &TimeCodeType) -> Option<Ordering>
fn partial_cmp(&self, other: &TimeCodeType) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl TryFrom<u8> for TimeCodeType
impl TryFrom<u8> for TimeCodeType
type Error = TryFromPrimitiveError<TimeCodeType>
type Error = TryFromPrimitiveError<TimeCodeType>
The type returned in the event of a conversion error.
sourcefn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for TimeCodeType
impl TryFromPrimitive for TimeCodeType
type Primitive = u8
const NAME: &'static str = "TimeCodeType"
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for TimeCodeType
impl Eq for TimeCodeType
impl StructuralEq for TimeCodeType
impl StructuralPartialEq for TimeCodeType
Auto Trait Implementations
impl RefUnwindSafe for TimeCodeType
impl Send for TimeCodeType
impl Sync for TimeCodeType
impl Unpin for TimeCodeType
impl UnwindSafe for TimeCodeType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more