pub enum SeekTarget {
Track(u32),
Time(String),
Delta(String),
}Expand description
Seek target for the seek() method
Combines the seek unit and target value into a single type-safe enum, preventing mismatched unit/target combinations.
Variants§
Track(u32)
Seek to a track number (1-based)
Time(String)
Seek to an absolute time position (e.g., "0:02:30")
Delta(String)
Seek by a time delta (e.g., "+0:00:30" or "-0:00:10")
Trait Implementations§
Source§impl Clone for SeekTarget
impl Clone for SeekTarget
Source§fn clone(&self) -> SeekTarget
fn clone(&self) -> SeekTarget
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 SeekTarget
impl Debug for SeekTarget
Source§impl PartialEq for SeekTarget
impl PartialEq for SeekTarget
impl Eq for SeekTarget
impl StructuralPartialEq for SeekTarget
Auto Trait Implementations§
impl Freeze for SeekTarget
impl RefUnwindSafe for SeekTarget
impl Send for SeekTarget
impl Sync for SeekTarget
impl Unpin for SeekTarget
impl UnsafeUnpin for SeekTarget
impl UnwindSafe for SeekTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.