pub struct StoryDuration { /* private fields */ }
Implementations§
Source§impl StoryDuration
impl StoryDuration
pub fn days(days: i64) -> Self
pub fn num_days(&self) -> i64
pub fn num_days_f32(&self) -> f32
pub fn hours(hours: i64) -> Self
pub fn num_hours(&self) -> i64
pub fn num_hours_f32(&self) -> f32
pub fn minutes(minutes: i64) -> Self
pub fn num_minutes(&self) -> i64
pub fn num_minutes_f32(&self) -> f32
pub fn seconds(seconds: i64) -> Self
pub fn num_seconds(&self) -> i64
pub fn num_seconds_f32(&self) -> f32
pub fn milliseconds(milliseconds: i64) -> Self
pub fn num_milliseconds(&self) -> i64
pub fn num_milliseconds_f32(&self) -> f32
Trait Implementations§
Source§impl Clone for StoryDuration
impl Clone for StoryDuration
Source§fn clone(&self) -> StoryDuration
fn clone(&self) -> StoryDuration
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Ord for StoryDuration
impl Ord for StoryDuration
Source§fn cmp(&self, other: &StoryDuration) -> Ordering
fn cmp(&self, other: &StoryDuration) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StoryDuration
impl PartialEq for StoryDuration
Source§impl PartialOrd for StoryDuration
impl PartialOrd for StoryDuration
Source§impl Sub for StoryDuration
impl Sub for StoryDuration
impl Copy for StoryDuration
impl Eq for StoryDuration
impl StructuralPartialEq for StoryDuration
Auto Trait Implementations§
impl Freeze for StoryDuration
impl RefUnwindSafe for StoryDuration
impl Send for StoryDuration
impl Sync for StoryDuration
impl Unpin for StoryDuration
impl UnwindSafe for StoryDuration
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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