pub struct Region { /* private fields */ }Implementations§
Source§impl Region
impl Region
pub fn create(name: &str, size: usize) -> Result<Self>
pub fn open(name: &str, size: usize) -> Result<Self>
pub fn as_ptr(&self) -> *mut u8
pub const fn len(&self) -> usize
pub const fn is_empty(&self) -> bool
pub const fn is_owner(&self) -> bool
pub unsafe fn cast<T>(&self) -> &T
pub unsafe fn cast_mut<T>(&self) -> &mut T
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Region
impl RefUnwindSafe for Region
impl Unpin for Region
impl UnwindSafe for Region
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