#[non_exhaustive]pub enum TimeMetric {
H,
M,
S,
Ms,
F,
T,
}Expand description
Metric units for offset-time expressions — TTML2 §12.3.1.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
H
Hours.
M
Minutes.
S
Seconds.
Ms
Milliseconds.
F
Frames (requires ttp:frameRate).
T
Ticks (requires ttp:tickRate).
Implementations§
Trait Implementations§
Source§impl Clone for TimeMetric
impl Clone for TimeMetric
Source§fn clone(&self) -> TimeMetric
fn clone(&self) -> TimeMetric
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 TimeMetric
Source§impl Debug for TimeMetric
impl Debug for TimeMetric
Source§impl Display for TimeMetric
impl Display for TimeMetric
impl Eq for TimeMetric
Source§impl PartialEq for TimeMetric
impl PartialEq for TimeMetric
impl StructuralPartialEq for TimeMetric
Auto Trait Implementations§
impl Freeze for TimeMetric
impl RefUnwindSafe for TimeMetric
impl Send for TimeMetric
impl Sync for TimeMetric
impl Unpin for TimeMetric
impl UnsafeUnpin for TimeMetric
impl UnwindSafe for TimeMetric
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