pub struct Segment<'data, 'file, R: ReadRef<'data> = &'data [u8]> where
'data: 'file, { /* private fields */ }
Expand description
A segment of a File
.
Trait Implementations
sourceimpl<'data, 'file, R: ReadRef<'data>> ObjectSegment<'data> for Segment<'data, 'file, R>
impl<'data, 'file, R: ReadRef<'data>> ObjectSegment<'data> for Segment<'data, 'file, R>
sourcefn data(&self) -> Result<&'data [u8]>
fn data(&self) -> Result<&'data [u8]>
Returns a reference to the file contents of the segment. Read more
sourcefn data_range(&self, address: u64, size: u64) -> Result<Option<&'data [u8]>>
fn data_range(&self, address: u64, size: u64) -> Result<Option<&'data [u8]>>
Return the segment data in the given range. Read more
sourcefn flags(&self) -> SegmentFlags
fn flags(&self) -> SegmentFlags
Return the flags of segment.
Auto Trait Implementations
impl<'data, 'file, R> RefUnwindSafe for Segment<'data, 'file, R> where
R: RefUnwindSafe,
impl<'data, 'file, R> Send for Segment<'data, 'file, R> where
R: Sync,
impl<'data, 'file, R> Sync for Segment<'data, 'file, R> where
R: Sync,
impl<'data, 'file, R> Unpin for Segment<'data, 'file, R> where
'data: 'file,
impl<'data, 'file, R> UnwindSafe for Segment<'data, 'file, R> where
R: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more