Struct cue_sheet::parser::Time
[−]
[src]
pub struct Time { pub mins: i32, pub secs: i8, pub frames: i8, }
Time representation of the format mm:ss:ff
.
Fields
mins: i32
Number of minutes.
secs: i8
Number of seconds.
frames: i8
Number of frames.
Cue sheets assume a fixed number of 75 frames per second, if your audio file has a different rate, you have to do the math yourself.
Methods
impl Time
[src]
fn new(mins: i32, secs: i8, frames: i8) -> Time
Create a new instance with the specified field values.
fn to_string_2(&self) -> String
Return a String consisting of only the mins and secs components.
Trait Implementations
impl Clone for Time
[src]
fn clone(&self) -> Time
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Time
[src]
impl Eq for Time
[src]
impl PartialEq for Time
[src]
fn eq(&self, __arg_0: &Time) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Time) -> bool
This method tests for !=
.
impl FromStr for Time
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
Parses a string s
to return a value of this type. Read more