pub struct GuardedAlloc {
pub ptr: *mut u8,
pub total_size: usize,
pub usable_size: usize,
pub base_ptr: *mut u8,
}Expand description
Result of a guarded allocation.
Fields§
§ptr: *mut u8The usable memory pointer (after the front guard page).
total_size: usizeTotal allocation size including guard pages.
usable_size: usizeUsable size (excluding guard pages).
base_ptr: *mut u8Base pointer (start of front guard page).
Auto Trait Implementations§
impl Freeze for GuardedAlloc
impl RefUnwindSafe for GuardedAlloc
impl !Send for GuardedAlloc
impl !Sync for GuardedAlloc
impl Unpin for GuardedAlloc
impl UnsafeUnpin for GuardedAlloc
impl UnwindSafe for GuardedAlloc
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