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: StringTrack number
format: StringTrack 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
Trait Implementations
impl StructuralPartialEq for Track
Auto Trait Implementations
impl RefUnwindSafe for Track
impl Send for Track
impl Sync for Track
impl Unpin for Track
impl UnwindSafe for Track
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more