pub struct Segment {
pub segment_type: SegmentType,
pub range: Range<u64>,
}Expand description
Describes the location of a chunk in the file, as well as indicating if it contains data or is a hole
Fields§
§segment_type: SegmentTypeMarks this segment as either containing a hole, or containing data
range: Range<u64>the (half-open) range of bytes in the file covered by this segment
Implementations§
Trait Implementations§
impl Eq for Segment
impl StructuralPartialEq for Segment
Auto Trait Implementations§
impl Freeze for Segment
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