Struct dx::foundation::time::DurationSpec
source · [−]pub struct DurationSpec { /* private fields */ }Expand description
A way to specify a duration with minutes and seconds.
The string format is the following:
MmSs, if you want minutes (e.g.3m43s).Ss, if you only have seconds (e.g.23s).
Trait Implementations
sourceimpl Clone for DurationSpec
impl Clone for DurationSpec
sourcefn clone(&self) -> DurationSpec
fn clone(&self) -> DurationSpec
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 DurationSpec
impl Debug for DurationSpec
sourceimpl Default for DurationSpec
impl Default for DurationSpec
sourceimpl From<DurationSpec> for Time
impl From<DurationSpec> for Time
sourcefn from(spec: DurationSpec) -> Self
fn from(spec: DurationSpec) -> Self
Converts to this type from the input type.
sourceimpl FromStr for DurationSpec
impl FromStr for DurationSpec
sourceimpl PartialEq<DurationSpec> for DurationSpec
impl PartialEq<DurationSpec> for DurationSpec
sourcefn eq(&self, other: &DurationSpec) -> bool
fn eq(&self, other: &DurationSpec) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &DurationSpec) -> bool
fn ne(&self, other: &DurationSpec) -> bool
This method tests for !=.
impl Copy for DurationSpec
impl Eq for DurationSpec
impl StructuralEq for DurationSpec
impl StructuralPartialEq for DurationSpec
Auto Trait Implementations
impl RefUnwindSafe for DurationSpec
impl Send for DurationSpec
impl Sync for DurationSpec
impl Unpin for DurationSpec
impl UnwindSafe for DurationSpec
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
sourceimpl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value as a parameter of self.