[−][src]Struct cuna::time::TimeStamp
Implementations
impl TimeStamp
[src]
pub fn new(minutes: u32, seconds: u32, frames: u32) -> Self
[src]
Constructs a new TimeStamp with minutes, seconds and frames
Panics
Panics if seconds >= 60 or frames >= 75
pub fn from_msf_opt(minutes: u32, seconds: u32, frames: u32) -> Option<Self>
[src]
Constructs a new TimeStamp with minutes, seconds and frames, or returns None if seconds >= 60 or frames >= 75
pub const fn from_msf(minutes: u32, seconds: u32, frames: u32) -> Self
[src]
Constructs a new TimeStamp with minutes, seconds and frames
It never panics, if seconds or frames are too big, they will be carried over into a larger unit
pub const fn minutes(&self) -> u32
[src]
pub const fn seconds(&self) -> u32
[src]
pub const fn frames(&self) -> u32
[src]
pub fn set_minutes(&mut self, minutes: u32)
[src]
pub fn set_seconds(&mut self, seconds: u32)
[src]
Panics
Panics if seconds >= 60
pub fn set_frames(&mut self, frames: u32)
[src]
Panics
Panics if frames >= 75
pub const fn as_seconds(&self) -> u32
[src]
pub const fn as_frames(&self) -> u32
[src]
Trait Implementations
impl Clone for TimeStamp
[src]
impl Copy for TimeStamp
[src]
impl Debug for TimeStamp
[src]
impl Default for TimeStamp
[src]
impl Display for TimeStamp
[src]
impl Eq for TimeStamp
[src]
impl From<Duration> for TimeStamp
[src]
impl From<TimeStamp> for Duration
[src]
impl FromStr for TimeStamp
[src]
type Err = ParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for TimeStamp
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<TimeStamp> for TimeStamp
[src]
impl StructuralEq for TimeStamp
[src]
impl StructuralPartialEq for TimeStamp
[src]
Auto Trait Implementations
impl RefUnwindSafe for TimeStamp
impl Send for TimeStamp
impl Sync for TimeStamp
impl Unpin for TimeStamp
impl UnwindSafe for TimeStamp
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,