pub struct MemorySegment {
pub name: String,
pub start_address: u32,
pub size: u32,
pub ty: String,
pub readable: bool,
pub writable: bool,
pub executable: bool,
pub page_size: Option<u32>,
}
Expand description
A segment of memory in a particular address space.
Fields§
§name: String
The name of the segment.
start_address: u32
A pointer to the first byte in the segment.
size: u32
The number of bytes in the segment.
ty: String
The segment type.
readable: bool
Whether the segment can be read from.
writable: bool
Whether the segment can be written to.
executable: bool
Whether the segment can be executed.
page_size: Option<u32>
How large pages are in this segment.
Trait Implementations§
Source§impl Clone for MemorySegment
impl Clone for MemorySegment
Source§fn clone(&self) -> MemorySegment
fn clone(&self) -> MemorySegment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MemorySegment
impl Debug for MemorySegment
Source§impl Hash for MemorySegment
impl Hash for MemorySegment
Source§impl PartialEq for MemorySegment
impl PartialEq for MemorySegment
Source§impl PartialOrd for MemorySegment
impl PartialOrd for MemorySegment
impl Eq for MemorySegment
impl StructuralPartialEq for MemorySegment
Auto Trait Implementations§
impl Freeze for MemorySegment
impl RefUnwindSafe for MemorySegment
impl Send for MemorySegment
impl Sync for MemorySegment
impl Unpin for MemorySegment
impl UnwindSafe for MemorySegment
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