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

Number of minutes.

Number of seconds.

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]

Create a new instance with the specified field values.

Return a String consisting of only the mins and secs components.

Trait Implementations

impl Clone for Time
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Time
[src]

Formats the value using the given formatter.

impl Eq for Time
[src]

impl PartialEq for Time
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl FromStr for Time
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl Display for Time
[src]

Formats the value using the given formatter. Read more

impl Sub for Time
[src]

The resulting type after applying the - operator

The method for the - operator