Struct rel_slab_allocator::SlabRegion
source · [−]pub struct SlabRegion<U> { /* private fields */ }
Trait Implementations
sourceimpl<'a, U, B1, B2> Emplace<RelSlabAllocator<'a, U, B1, B2>, SlabRegion<U>> for SlabAllocator<'a, U, B1>where
U: Unique,
B1: Basis,
B2: Basis,
impl<'a, U, B1, B2> Emplace<RelSlabAllocator<'a, U, B1, B2>, SlabRegion<U>> for SlabAllocator<'a, U, B1>where
U: Unique,
B1: Basis,
B2: Basis,
sourcefn emplaced_meta(
&self
) -> <RelSlabAllocator<'a, U, B1, B2> as Pointee>::Metadata
fn emplaced_meta(
&self
) -> <RelSlabAllocator<'a, U, B1, B2> as Pointee>::Metadata
Returns the metadata of the
T
that this emplaces. Read moresourceunsafe fn emplace_unsized_unchecked(
self,
out: In<Slot<'_, RelSlabAllocator<'a, U, B1, B2>>, SlabRegion<U>>
)
unsafe fn emplace_unsized_unchecked(
self,
out: In<Slot<'_, RelSlabAllocator<'a, U, B1, B2>>, SlabRegion<U>>
)
Emplaces a value into a given slot within some memory region. Read more
sourceimpl<'a, U, B1, B2> Move<SlabRegion<U>> for RelSlabAllocator<'a, U, B1, B2>where
U: Unique,
B1: Basis,
B2: Basis,
impl<'a, U, B1, B2> Move<SlabRegion<U>> for RelSlabAllocator<'a, U, B1, B2>where
U: Unique,
B1: Basis,
B2: Basis,
sourceunsafe fn move_unsized_unchecked(
this: In<Val<'_, Self>, SlabRegion<U>>,
out: In<Slot<'_, Self>, SlabRegion<U>>
)
unsafe fn move_unsized_unchecked(
this: In<Val<'_, Self>, SlabRegion<U>>,
out: In<Slot<'_, Self>, SlabRegion<U>>
)
Moves a value into a given slot within some memory region. Read more
impl<U: Unique> Region for SlabRegion<U>
impl<U> Singleton for SlabRegion<U>where
PhantomData<U>: Singleton,
Auto Trait Implementations
impl<U> RefUnwindSafe for SlabRegion<U>where
U: RefUnwindSafe,
impl<U> Send for SlabRegion<U>where
U: Send,
impl<U> Sync for SlabRegion<U>where
U: Sync,
impl<U> Unpin for SlabRegion<U>where
U: Unpin,
impl<U> UnwindSafe for SlabRegion<U>where
U: UnwindSafe,
Blanket Implementations
sourceimpl<T, B> BasisPointee<B> for Twhere
B: Basis,
impl<T, B> BasisPointee<B> for Twhere
B: Basis,
type BasisMetadata = ()
type BasisMetadata = ()
The metadata associated with the pointee in the chosen basis.
type FromNativeError = Infallible
type FromNativeError = Infallible
An error occurred while converting metadata from the native
representation. Read more
type ToNativeError = Infallible
type ToNativeError = Infallible
An error occurred while converting metadata to the native
representation. Read more
sourcefn from_native_metadata(
<T as Pointee>::Metadata
) -> Result<<T as BasisPointee<B>>::BasisMetadata, <T as BasisPointee<B>>::FromNativeError>
fn from_native_metadata(
<T as Pointee>::Metadata
) -> Result<<T as BasisPointee<B>>::BasisMetadata, <T as BasisPointee<B>>::FromNativeError>
Returns the pointer metadata in
B
corresponding to the given native
pointer metadata, or Err
if the conversion failed. Read moresourcefn to_native_metadata(
<T as BasisPointee<B>>::BasisMetadata
) -> Result<<T as Pointee>::Metadata, <T as BasisPointee<B>>::ToNativeError>
fn to_native_metadata(
<T as BasisPointee<B>>::BasisMetadata
) -> Result<<T as Pointee>::Metadata, <T as BasisPointee<B>>::ToNativeError>
Returns the native pointer metadata corresponding to the given pointer
metadata in
B
, or Err
if the conversion failed. Read moresourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more