Struct rel_slab_allocator::RelSlabAllocator 
source · [−]#[repr(C)]pub struct RelSlabAllocator<'a, U: Unique, B1: Basis = DefaultBasis, B2: Basis = DefaultBasis> { /* private fields */ }Trait Implementations
sourceimpl<'a, U: Unique, B1: Basis, B2: Basis> DropRaw for RelSlabAllocator<'a, U, B1, B2>where
    RelRef<'a, SlabControl<U, B1>, SlabRegion<U>, B2>: DropRaw,
 
impl<'a, U: Unique, B1: Basis, B2: Basis> DropRaw for RelSlabAllocator<'a, U, B1, B2>where
    RelRef<'a, SlabControl<U, B1>, SlabRegion<U>, B2>: DropRaw,
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
sourceimpl<U, B1, B2> RawAllocator for RelSlabAllocator<'_, U, B1, B2>where
    U: Unique,
    B1: Basis,
    B2: Basis,
 
impl<U, B1, B2> RawAllocator for RelSlabAllocator<'_, U, B1, B2>where
    U: Unique,
    B1: Basis,
    B2: Basis,
sourcefn raw_allocate(
    this: Ref<'_, Self>,
    layout: Layout
) -> Result<NonNull<[u8]>, AllocError>
 
fn raw_allocate(
    this: Ref<'_, Self>,
    layout: Layout
) -> Result<NonNull<[u8]>, AllocError>
Attempts to allocate a block of memory. Read more
sourceunsafe fn raw_deallocate(_this: Ref<'_, Self>, _ptr: NonNull<u8>, _layout: Layout)
 
unsafe fn raw_deallocate(_this: Ref<'_, Self>, _ptr: NonNull<u8>, _layout: Layout)
Deallocates the memory referenced by 
ptr. Read moresourcefn raw_allocate_zeroed(
    this: Ref<'_, Self>,
    layout: Layout
) -> Result<NonNull<[u8]>, AllocError>
 
fn raw_allocate_zeroed(
    this: Ref<'_, Self>,
    layout: Layout
) -> Result<NonNull<[u8]>, AllocError>
Behaves like 
raw_allocate, but also ensures that the returned memory is
zero-initialized. Read moresourceunsafe fn raw_grow(
    this: Ref<'_, Self>,
    ptr: NonNull<u8>,
    old_layout: Layout,
    new_layout: Layout
) -> Result<NonNull<[u8]>, AllocError>
 
unsafe fn raw_grow(
    this: Ref<'_, Self>,
    ptr: NonNull<u8>,
    old_layout: Layout,
    new_layout: Layout
) -> Result<NonNull<[u8]>, AllocError>
Attempts to extend the memory block. Read more
sourceunsafe fn raw_grow_zeroed(
    this: Ref<'_, Self>,
    ptr: NonNull<u8>,
    old_layout: Layout,
    new_layout: Layout
) -> Result<NonNull<[u8]>, AllocError>
 
unsafe fn raw_grow_zeroed(
    this: Ref<'_, Self>,
    ptr: NonNull<u8>,
    old_layout: Layout,
    new_layout: Layout
) -> Result<NonNull<[u8]>, AllocError>
Behaves like 
raw_grow, but also ensures that the new contents are set
to zero before being returned. Read moresourceunsafe fn raw_grow_in_place(
    Ref<'_, Self>,
    ptr: NonNull<u8>,
    old_layout: Layout,
    new_layout: Layout
) -> Result<NonNull<[u8]>, AllocError>
 
unsafe fn raw_grow_in_place(
    Ref<'_, Self>,
    ptr: NonNull<u8>,
    old_layout: Layout,
    new_layout: Layout
) -> Result<NonNull<[u8]>, AllocError>
sourceunsafe fn raw_grow_zeroed_in_place(
    this: Ref<'_, Self>,
    ptr: NonNull<u8>,
    old_layout: Layout,
    new_layout: Layout
) -> Result<NonNull<[u8]>, AllocError>
 
unsafe fn raw_grow_zeroed_in_place(
    this: Ref<'_, Self>,
    ptr: NonNull<u8>,
    old_layout: Layout,
    new_layout: Layout
) -> Result<NonNull<[u8]>, AllocError>
Behaves like 
raw_grow_zeroed but returns Err if the memory block
cannot be grown in-place. Read moresourceimpl<'a, U, B1, B2> RawRegionalAllocator for RelSlabAllocator<'a, U, B1, B2>where
    U: Unique,
    B1: Basis,
    B2: Basis,
 
impl<'a, U, B1, B2> RawRegionalAllocator for RelSlabAllocator<'a, U, B1, B2>where
    U: Unique,
    B1: Basis,
    B2: Basis,
type Region = SlabRegion<U>
type Region = SlabRegion<U>
The region type for this allocator.
impl<'a, U: Unique, B1: Basis, B2: Basis> Portable for RelSlabAllocator<'a, U, B1, B2>where
    RelRef<'a, SlabControl<U, B1>, SlabRegion<U>, B2>: Portable,
impl<'a, U, B1, B2> RelAllocator<RelSlabAllocator<'a, U, B1, B2>> for SlabAllocator<'a, U, B1>where
    U: Unique,
    B1: Basis,
    B2: Basis,
Auto Trait Implementations
impl<'a, U, B1 = DefaultBasis, B2 = DefaultBasis> !RefUnwindSafe for RelSlabAllocator<'a, U, B1, B2>
impl<'a, U, B1 = DefaultBasis, B2 = DefaultBasis> !Send for RelSlabAllocator<'a, U, B1, B2>
impl<'a, U, B1 = DefaultBasis, B2 = DefaultBasis> !Sync for RelSlabAllocator<'a, U, B1, B2>
impl<'a, U, B1 = DefaultBasis, B2 = DefaultBasis> !Unpin for RelSlabAllocator<'a, U, B1, B2>
impl<'a, U, B1 = DefaultBasis, B2 = DefaultBasis> !UnwindSafe for RelSlabAllocator<'a, U, B1, B2>
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