pub struct Segment<K> {
pub range: Range<usize>,
pub kind: K,
}Expand description
One contiguous run of an input, tagged by what it holds.
K is the format’s own classification (e.g. gamut_isobmff::SegmentKind); this type adds
nothing to it but the half-open byte range it occupies. A list of these is total over an
input of len bytes exactly when covers says so.
Fields§
§range: Range<usize>The half-open byte range this segment occupies within the input (start..end).
kind: KWhat the bytes in range are.
Trait Implementations§
impl<K: Eq> Eq for Segment<K>
impl<K: PartialEq> StructuralPartialEq for Segment<K>
Auto Trait Implementations§
impl<K> Freeze for Segment<K>where
K: Freeze,
impl<K> RefUnwindSafe for Segment<K>where
K: RefUnwindSafe,
impl<K> Send for Segment<K>where
K: Send,
impl<K> Sync for Segment<K>where
K: Sync,
impl<K> Unpin for Segment<K>where
K: Unpin,
impl<K> UnsafeUnpin for Segment<K>where
K: UnsafeUnpin,
impl<K> UnwindSafe for Segment<K>where
K: 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