[−][src]Struct alloc_compose::Affix
Fields
alloc: AllocMethods
impl<Alloc, Prefix, Suffix> Affix<Alloc, Prefix, Suffix>[src]
pub const fn new(alloc: Alloc) -> Self[src]
pub unsafe fn prefix(ptr: NonNull<u8>, layout: Layout) -> NonNull<Prefix>[src]
Safety
ptrmust denote a block of memory [currently allocated] via this allocator, andlayoutmust [fit] that block of memory.
pub unsafe fn suffix(ptr: NonNull<u8>, layout: Layout) -> NonNull<Suffix>[src]
Safety
ptrmust denote a block of memory [currently allocated] via this allocator, andlayoutmust [fit] that block of memory.
Trait Implementations
impl<Alloc, Prefix, Suffix> AllocRef for Affix<Alloc, Prefix, Suffix> where
Alloc: AllocRef, [src]
Alloc: AllocRef,
fn alloc(
&mut self,
layout: Layout,
init: AllocInit
) -> Result<MemoryBlock, AllocErr>[src]
&mut self,
layout: Layout,
init: AllocInit
) -> Result<MemoryBlock, AllocErr>
unsafe fn dealloc(&mut self, ptr: NonNull<u8>, layout: Layout)[src]
unsafe fn grow(
&mut self,
ptr: NonNull<u8>,
old_layout: Layout,
new_size: usize,
placement: ReallocPlacement,
init: AllocInit
) -> Result<MemoryBlock, AllocErr>[src]
&mut self,
ptr: NonNull<u8>,
old_layout: Layout,
new_size: usize,
placement: ReallocPlacement,
init: AllocInit
) -> Result<MemoryBlock, AllocErr>
unsafe fn shrink(
&mut self,
ptr: NonNull<u8>,
old_layout: Layout,
new_size: usize,
placement: ReallocPlacement
) -> Result<MemoryBlock, AllocErr>[src]
&mut self,
ptr: NonNull<u8>,
old_layout: Layout,
new_size: usize,
placement: ReallocPlacement
) -> Result<MemoryBlock, AllocErr>
fn by_ref(&mut self) -> &mut Self[src]
impl<Alloc: Clone, Prefix: Clone, Suffix: Clone> Clone for Affix<Alloc, Prefix, Suffix>[src]
fn clone(&self) -> Affix<Alloc, Prefix, Suffix>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<Alloc: Copy, Prefix: Copy, Suffix: Copy> Copy for Affix<Alloc, Prefix, Suffix>[src]
impl<Alloc: Debug, Prefix: Debug, Suffix: Debug> Debug for Affix<Alloc, Prefix, Suffix>[src]
impl<Alloc, Prefix, Suffix> Default for Affix<Alloc, Prefix, Suffix> where
Alloc: Default, [src]
Alloc: Default,
impl<Alloc: Eq, Prefix: Eq, Suffix: Eq> Eq for Affix<Alloc, Prefix, Suffix>[src]
impl<Alloc: PartialEq, Prefix: PartialEq, Suffix: PartialEq> PartialEq<Affix<Alloc, Prefix, Suffix>> for Affix<Alloc, Prefix, Suffix>[src]
fn eq(&self, other: &Affix<Alloc, Prefix, Suffix>) -> bool[src]
fn ne(&self, other: &Affix<Alloc, Prefix, Suffix>) -> bool[src]
impl<Alloc, Prefix, Suffix> StructuralEq for Affix<Alloc, Prefix, Suffix>[src]
impl<Alloc, Prefix, Suffix> StructuralPartialEq for Affix<Alloc, Prefix, Suffix>[src]
Auto Trait Implementations
impl<Alloc, Prefix, Suffix> RefUnwindSafe for Affix<Alloc, Prefix, Suffix> where
Alloc: RefUnwindSafe,
Prefix: RefUnwindSafe,
Suffix: RefUnwindSafe,
Alloc: RefUnwindSafe,
Prefix: RefUnwindSafe,
Suffix: RefUnwindSafe,
impl<Alloc, Prefix, Suffix> Send for Affix<Alloc, Prefix, Suffix> where
Alloc: Send,
Prefix: Send,
Suffix: Send,
Alloc: Send,
Prefix: Send,
Suffix: Send,
impl<Alloc, Prefix, Suffix> Sync for Affix<Alloc, Prefix, Suffix> where
Alloc: Sync,
Prefix: Sync,
Suffix: Sync,
Alloc: Sync,
Prefix: Sync,
Suffix: Sync,
impl<Alloc, Prefix, Suffix> Unpin for Affix<Alloc, Prefix, Suffix> where
Alloc: Unpin,
Prefix: Unpin,
Suffix: Unpin,
Alloc: Unpin,
Prefix: Unpin,
Suffix: Unpin,
impl<Alloc, Prefix, Suffix> UnwindSafe for Affix<Alloc, Prefix, Suffix> where
Alloc: UnwindSafe,
Prefix: UnwindSafe,
Suffix: UnwindSafe,
Alloc: UnwindSafe,
Prefix: UnwindSafe,
Suffix: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,