pub enum TrackPosition {
Invalid,
First,
Middle,
Last,
Only,
}Expand description
§Track Position.
This enum is used to differentiate between first, middle, and final track positions within the context of a given table of contents.
Variants of this type are returned by Track::position.
Variants§
Invalid
§Invalid.
This is used for track numbers that are out of range, including pre-gap hidden tracks (#0).
First
§The First Track.
Middle
§Somewhere in the Middle.
Last
§The Last Track.
Only
§The Only Track.
Implementations§
Trait Implementations§
Source§impl Clone for TrackPosition
impl Clone for TrackPosition
Source§fn clone(&self) -> TrackPosition
fn clone(&self) -> TrackPosition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrackPosition
impl Debug for TrackPosition
Source§impl<'de> Deserialize<'de> for TrackPosition
Available on crate feature serde only.
impl<'de> Deserialize<'de> for TrackPosition
Available on crate feature
serde only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for TrackPosition
impl Hash for TrackPosition
Source§impl PartialEq for TrackPosition
impl PartialEq for TrackPosition
Source§impl Serialize for TrackPosition
Available on crate feature serde only.
impl Serialize for TrackPosition
Available on crate feature
serde only.impl Copy for TrackPosition
impl Eq for TrackPosition
impl StructuralPartialEq for TrackPosition
Auto Trait Implementations§
impl Freeze for TrackPosition
impl RefUnwindSafe for TrackPosition
impl Send for TrackPosition
impl Sync for TrackPosition
impl Unpin for TrackPosition
impl UnwindSafe for TrackPosition
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