pub struct Segment { /* private fields */ }Expand description
The Segment type.
Implementations§
Source§impl Segment
impl Segment
Sourcepub const fn file_offset(&self) -> ThinFileOffset
pub const fn file_offset(&self) -> ThinFileOffset
Slice-relative start of file-backed bytes.
Sourcepub const fn max_prot(&self) -> VmProtection
pub const fn max_prot(&self) -> VmProtection
Maximum virtual-memory protections.
Sourcepub const fn init_prot(&self) -> VmProtection
pub const fn init_prot(&self) -> VmProtection
Initial virtual-memory protections.
Sourcepub const fn flags(&self) -> SegmentFlags
pub const fn flags(&self) -> SegmentFlags
Parsed segment flags.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnsafeUnpin 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