pub struct RegionPool { /* private fields */ }Implementations§
Source§impl RegionPool
impl RegionPool
Source§impl RegionPool
impl RegionPool
pub fn create(max_memory: usize) -> Result<RefPtr<Self>, AllocError>
Trait Implementations§
Source§impl HasPinData for RegionPool
impl HasPinData for RegionPool
Source§impl HasRefCount for RegionPool
impl HasRefCount for RegionPool
Source§fn ref_count(&self) -> &RefCounted
fn ref_count(&self) -> &RefCounted
Returns a reference to the contained
RefCounted field.Source§impl Recyclable for RegionPool
impl Recyclable for RegionPool
Source§impl UninitRecyclable for RegionPool
impl UninitRecyclable for RegionPool
Source§unsafe fn recycle_uninit(ptr: NonNull<MaybeUninit<Self>>)
unsafe fn recycle_uninit(ptr: NonNull<MaybeUninit<Self>>)
Recycles an uninitialized object. Read more
Source§fn allocate_uninit() -> Result<NonNull<MaybeUninit<Self>>, AllocError>
fn allocate_uninit() -> Result<NonNull<MaybeUninit<Self>>, AllocError>
Allocates a new uninitialized instance of
Self.Auto Trait Implementations§
impl !Freeze for RegionPool
impl !RefUnwindSafe for RegionPool
impl !UnwindSafe for RegionPool
impl Send for RegionPool
impl Sync for RegionPool
impl UnsafeUnpin for RegionPool
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), !>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), !>
Initializes
slot. Read moreSource§fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E>where
F: FnOnce(Pin<&mut T>) -> Result<(), E>,
fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E>where
F: FnOnce(Pin<&mut T>) -> Result<(), E>,
First initializes the value using
self then calls the function f with the initialized
value. Read more§impl<T> ToMutPtr for Twhere
T: ?Sized,
impl<T> ToMutPtr for Twhere
T: ?Sized,
§fn to_mut_ptr(&self) -> *mut T
fn to_mut_ptr(&self) -> *mut T
Casts the reference to a mutable raw pointer.