pub struct Track {
pub number: u8,
pub start_lba: u32,
pub start_msf: (u8, u8, u8),
pub is_audio: bool,
}Expand description
Representation of the track from TOC, purely in terms of data location on the CD.
Fields§
§number: u8Track number from the Table of Contents (read from the CD itself). It usually starts with 1, but you should read this value directly when reading raw track data. There might be gaps, and also in the future there might be hidden track support, which will be located at number 0.
start_lba: u32starting offset, unnecessary to use directly
start_msf: (u8, u8, u8)starting offset, but in (minute, second, frame) format
is_audio: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for Track
impl RefUnwindSafe for Track
impl Send for Track
impl Sync for Track
impl Unpin for Track
impl UnwindSafe for Track
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more