pub struct TrimDuration<'a, 'f1, S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with trim().
Implementations§
Source§impl<'a, 'f1, S: State> TrimDuration<'a, 'f1, S>
impl<'a, 'f1, S: State> TrimDuration<'a, 'f1, S>
Sourcepub fn trim(self) -> &'f1 mut MoovAtomRefMut<'a>where
S: IsComplete,
pub fn trim(self) -> &'f1 mut MoovAtomRefMut<'a>where
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn from_start(
self,
value: Duration,
) -> TrimDuration<'a, 'f1, SetFromStart<S>>where
S::FromStart: IsUnset,
pub fn from_start(
self,
value: Duration,
) -> TrimDuration<'a, 'f1, SetFromStart<S>>where
S::FromStart: IsUnset,
Sourcepub fn maybe_from_start(
self,
value: Option<Duration>,
) -> TrimDuration<'a, 'f1, SetFromStart<S>>where
S::FromStart: IsUnset,
pub fn maybe_from_start(
self,
value: Option<Duration>,
) -> TrimDuration<'a, 'f1, SetFromStart<S>>where
S::FromStart: IsUnset,
Sourcepub fn from_end(self, value: Duration) -> TrimDuration<'a, 'f1, SetFromEnd<S>>where
S::FromEnd: IsUnset,
pub fn from_end(self, value: Duration) -> TrimDuration<'a, 'f1, SetFromEnd<S>>where
S::FromEnd: IsUnset,
Sourcepub fn maybe_from_end(
self,
value: Option<Duration>,
) -> TrimDuration<'a, 'f1, SetFromEnd<S>>where
S::FromEnd: IsUnset,
pub fn maybe_from_end(
self,
value: Option<Duration>,
) -> TrimDuration<'a, 'f1, SetFromEnd<S>>where
S::FromEnd: IsUnset,
Auto Trait Implementations§
impl<'a, 'f1, S> Freeze for TrimDuration<'a, 'f1, S>
impl<'a, 'f1, S> RefUnwindSafe for TrimDuration<'a, 'f1, S>
impl<'a, 'f1, S> Send for TrimDuration<'a, 'f1, S>
impl<'a, 'f1, S> Sync for TrimDuration<'a, 'f1, S>
impl<'a, 'f1, S> Unpin for TrimDuration<'a, 'f1, S>
impl<'a, 'f1, S> UnsafeUnpin for TrimDuration<'a, 'f1, S>
impl<'a, 'f1, S = Empty> !UnwindSafe for TrimDuration<'a, 'f1, S>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more