pub struct TrackIndex(/* private fields */);Expand description
A track’s position in the table Demuxer::tracks returns.
TrackIndex(i) is the index of tracks()[i] — the coordinate
and the table position are the same number by contract, so a
consumer that has a packet’s track can look up its description
without a side map. Backends whose native identifiers are sparse or
unordered are responsible for the translation.
Implementations§
Trait Implementations§
Source§impl Clone for TrackIndex
impl Clone for TrackIndex
Source§fn clone(&self) -> TrackIndex
fn clone(&self) -> TrackIndex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TrackIndex
Source§impl Debug for TrackIndex
impl Debug for TrackIndex
Source§impl Default for TrackIndex
impl Default for TrackIndex
Source§fn default() -> TrackIndex
fn default() -> TrackIndex
Returns the “default value” for a type. Read more
impl Eq for TrackIndex
Source§impl Hash for TrackIndex
impl Hash for TrackIndex
Source§impl Ord for TrackIndex
impl Ord for TrackIndex
Source§fn cmp(&self, other: &TrackIndex) -> Ordering
fn cmp(&self, other: &TrackIndex) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TrackIndex
impl PartialEq for TrackIndex
Source§impl PartialOrd for TrackIndex
impl PartialOrd for TrackIndex
impl StructuralPartialEq for TrackIndex
Auto Trait Implementations§
impl Freeze for TrackIndex
impl RefUnwindSafe for TrackIndex
impl Send for TrackIndex
impl Sync for TrackIndex
impl Unpin for TrackIndex
impl UnsafeUnpin for TrackIndex
impl UnwindSafe for TrackIndex
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