pub struct Segment {
pub mode: Mode,
pub begin: usize,
pub end: usize,
}
Expand description
A segment of data committed to an encoding mode.
Fields§
§mode: Mode
The encoding mode of the segment of data.
begin: usize
The start index of the segment.
end: usize
The end index (exclusive) of the segment.
Implementations§
Trait Implementations§
source§impl PartialEq for Segment
impl PartialEq for Segment
impl Copy for Segment
impl Eq for Segment
impl StructuralEq for Segment
impl StructuralPartialEq for Segment
Auto Trait Implementations§
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnwindSafe for Segment
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