pub struct Toc {
pub first_track: u8,
pub last_track: u8,
pub tracks: Vec<Track>,
pub leadout_lba: u32,
}Expand description
Table of Contents, read directly from the Audio CD. The most important part
is the tracks vector, which allows you to read raw track data.
Fields§
§first_track: u8Helper value with the first track number
last_track: u8Helper value with the last track number. You should not use it directly to iterate over all available tracks, as there might be gaps.
tracks: Vec<Track>List of tracks with LBA and MSF offsets
leadout_lba: u32Used to calculate number of sectors for the last track. You’ll also need this in order to calculate MusicBrainz ID.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Toc
impl RefUnwindSafe for Toc
impl Send for Toc
impl Sync for Toc
impl Unpin for Toc
impl UnwindSafe for Toc
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