pub struct MappingEntry { /* private fields */ }Expand description
One validated file-to-virtual mapping.
Implementations§
Source§impl MappingEntry
impl MappingEntry
Sourcepub fn try_new(
file_offset: ThinFileOffset,
file_size: u64,
vm_addr: Va,
vm_size: u64,
) -> ParseResult<Self>
pub fn try_new( file_offset: ThinFileOffset, file_size: u64, vm_addr: Va, vm_size: u64, ) -> ParseResult<Self>
Construct a mapping after checking file and virtual range arithmetic.
Sourcepub fn file_offset(&self) -> ThinFileOffset
pub fn file_offset(&self) -> ThinFileOffset
Thin-image-relative file start.
Trait Implementations§
Source§impl Clone for MappingEntry
impl Clone for MappingEntry
Auto Trait Implementations§
impl Freeze for MappingEntry
impl RefUnwindSafe for MappingEntry
impl Send for MappingEntry
impl Sync for MappingEntry
impl Unpin for MappingEntry
impl UnsafeUnpin for MappingEntry
impl UnwindSafe for MappingEntry
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