pub struct Region { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Recyclable for Region
impl Recyclable for Region
Source§unsafe fn recycle(ptr: NonNull<Self>)
unsafe fn recycle(ptr: NonNull<Self>)
Recycle a region when its UniquePtr goes out of scope.
§Safety
The caller must guarantee that ptr is a valid, unique pointer to a Region
that is no longer referenced anywhere else.
Source§fn allocate(_value: Self) -> Result<NonNull<Self>, AllocError>
fn allocate(_value: Self) -> Result<NonNull<Self>, AllocError>
Allocates a new instance of
Self. Read moreSource§unsafe fn recycle_ffi(ptr: *mut c_void)
unsafe fn recycle_ffi(ptr: *mut c_void)
Helper for FFI functions to call
recycle. Read moreimpl Send for Region
impl Sync for Region
Source§impl WavlTreeContainable<Region, SortByBase> for Region
impl WavlTreeContainable<Region, SortByBase> for Region
Source§impl WavlTreeContainable<Region, SortBySize> for Region
impl WavlTreeContainable<Region, SortBySize> for Region
Source§impl WavlTreeKeyable<RegionKey> for Region
impl WavlTreeKeyable<RegionKey> for Region
Auto Trait Implementations§
impl !Freeze for Region
impl !RefUnwindSafe for Region
impl !UnwindSafe for Region
impl Unpin for Region
impl UnsafeUnpin for Region
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.