#[non_exhaustive]pub struct Track {
pub number: u8,
pub start_lsn: u32,
pub length_sectors: u32,
pub start_frame: u32,
pub duration_frames: u32,
pub start_flags: u8,
pub duration_flags: u8,
pub isrc: Option<String>,
pub genre: Option<Genre>,
pub text: TrackText,
}Expand description
A track (specification 3, 3.9.1).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.number: u8Track number, 1 to the track count.
start_lsn: u32Start LSN, as stored.
length_sectors: u32Length in sectors, as stored.
start_frame: u32Start frame number, after clamping (specification 3, 3.9.2).
duration_frames: u32Duration in frames, after clamping.
start_flags: u8Start flags byte.
duration_flags: u8Duration flags byte.
isrc: Option<String>ISRC, if any: a fixed text field as specification 2, 2.6.5 and specification 3, 3.7.3 define it, the bytes up to the first 0x00 with whitespace trimmed from the ends; its syntax is not validated. It may contain control characters: C0, U+007F (DEL) and U+0080 to U+009F (C1) are kept (2.6.5 item 4). Such characters reach whatever the string is passed to: U+009B (CSI), for example, starts a terminal control sequence on terminals that honour 8-bit controls. A caller that prints the value or puts it in a tag or file name should escape or filter it for that use.
genre: Option<Genre>Genre, if the area has a SACD_IGL.
text: TrackTextTrack text.
Implementations§
Trait Implementations§
impl Eq for Track
impl StructuralPartialEq for Track
Auto Trait Implementations§
impl Forget for Track
impl Freeze for Track
impl Move for Track
impl RefUnwindSafe for Track
impl Send for Track
impl Sync for Track
impl Unpin for Track
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more