Struct rcue::cue::Track

source · []
pub struct Track {
    pub no: String,
    pub format: String,
    pub title: Option<String>,
    pub performer: Option<String>,
    pub indices: Vec<(String, Duration)>,
    pub pregap: Option<Duration>,
    pub postgap: Option<Duration>,
    pub comments: Vec<(String, String)>,
    pub isrc: Option<String>,
    pub flags: Vec<String>,
    pub songwriter: Option<String>,
    pub unknown: Vec<String>,
}
Expand description

Represents a TRACK in a CueFile.

Fields

no: String

Track number

format: String

Track format (eg. AUDIO)

title: Option<String>

Title for the track

performer: Option<String>

Performer for the track

indices: Vec<(String, Duration)>

(index, timestamp)

pregap: Option<Duration>

Pregap of the track in Duration, converted from frames (75 frames = 1s)

postgap: Option<Duration>

Postgap of the track in Duration, converted from frames (75 frames = 1s)

comments: Vec<(String, String)>

(key, value)

isrc: Option<String>

International Standard Recording Code, typically CCOOOYYSSSSS

C: Country code (uppercase alphanumeric) O: Owner code (uppercase alphanumeric) Y: Year (numeric) S: Serial number (numeric)

flags: Vec<String>

Track special sub-code flags (DCP, 4CH, PRE, SCMS)

songwriter: Option<String>

Songwriter for the track

unknown: Vec<String>

Raw lines from unhandled fields

Implementations

Constructs a new Track.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.