Struct components::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
sourcefn default() -> DurationSpec
fn default() -> DurationSpec
Returns the “default value” for a type. Read more
sourceimpl From<DurationSpec> for Time
impl From<DurationSpec> for Time
sourcefn from(spec: DurationSpec) -> Time
fn from(spec: DurationSpec) -> Time
Converts to this type from the input type.
sourceimpl FromStr for DurationSpec
impl FromStr for DurationSpec
type Err = DurationSpecError
type Err = DurationSpecError
The associated error which can be returned from parsing.
sourcefn from_str(s: &str) -> Result<DurationSpec, <DurationSpec as FromStr>::Err>
fn from_str(s: &str) -> Result<DurationSpec, <DurationSpec as FromStr>::Err>
Parses a string s
to return a value of this type. Read more
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
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn 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
.