pub struct IndexVec<const MAX: usize, O: Adjacent> { /* private fields */ }Expand description
A Vec of Indexes with the given offset type
Tracks other than the lead-out are required
to have at least one INDEX 01 index point,
which specifies the beginning of the track.
An INDEX 00 pre-gap point is optional.
MAX is the maximum number of index points
this can hold, including the first.
This is 100 for CD-DA (00 to 99, inclusive)
and 254 for non-CD-DA cuesheets.
Implementations§
Trait Implementations§
Source§impl<const MAX: usize, O: Adjacent> TryFrom<Contiguous<MAX, Index<O>>> for IndexVec<MAX, O>
impl<const MAX: usize, O: Adjacent> TryFrom<Contiguous<MAX, Index<O>>> for IndexVec<MAX, O>
Source§type Error = CuesheetError
type Error = CuesheetError
The type returned in the event of a conversion error.
Source§fn try_from(items: Contiguous<MAX, Index<O>>) -> Result<Self, CuesheetError>
fn try_from(items: Contiguous<MAX, Index<O>>) -> Result<Self, CuesheetError>
Performs the conversion.
impl<const MAX: usize, O: Eq + Adjacent> Eq for IndexVec<MAX, O>
impl<const MAX: usize, O: Adjacent> StructuralPartialEq for IndexVec<MAX, O>
Auto Trait Implementations§
impl<const MAX: usize, O> Freeze for IndexVec<MAX, O>where
O: Freeze,
impl<const MAX: usize, O> RefUnwindSafe for IndexVec<MAX, O>where
O: RefUnwindSafe,
impl<const MAX: usize, O> Send for IndexVec<MAX, O>where
O: Send,
impl<const MAX: usize, O> Sync for IndexVec<MAX, O>where
O: Sync,
impl<const MAX: usize, O> Unpin for IndexVec<MAX, O>where
O: Unpin,
impl<const MAX: usize, O> UnwindSafe for IndexVec<MAX, O>where
O: UnwindSafe,
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