Struct osiris_data::data::identification::Area
source · pub struct Area { /* private fields */ }Expand description
A pointer to a region in memory.
Implementations§
source§impl Area
impl Area
sourcepub fn new(start: Address, item_size: usize, item_count: usize) -> Self
pub fn new(start: Address, item_size: usize, item_count: usize) -> Self
Creates a new area with specified item size (how many 64 bits values describes one element of the area).
pub fn from(start: Address, end: Address) -> Self
pub fn count(&self) -> usize
pub fn size(&self) -> usize
pub fn is_null(&self) -> bool
pub fn start(&self) -> Address
pub fn end(&self) -> Address
pub fn constraint(&self, pointer: Address) -> Address
pub fn offset(&self, index: usize) -> usize
pub fn next_address(&self, cursor: Address) -> Address
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Area
impl RefUnwindSafe for Area
impl Send for Area
impl Sync for Area
impl Unpin for Area
impl UnwindSafe for Area
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