[][src]Struct alloc_compose::Affix

pub struct Affix<Alloc, Prefix = (), Suffix = ()> {
    pub alloc: Alloc,
    // some fields omitted
}

Fields

alloc: Alloc

Methods

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

  • ptr must denote a block of memory [currently allocated] via this allocator, and
  • layout must [fit] that block of memory.

pub unsafe fn suffix(ptr: NonNull<u8>, layout: Layout) -> NonNull<Suffix>[src]

Safety

  • ptr must denote a block of memory [currently allocated] via this allocator, and
  • layout must [fit] that block of memory.

Trait Implementations

impl<Alloc, Prefix, Suffix> AllocRef for Affix<Alloc, Prefix, Suffix> where
    Alloc: AllocRef
[src]

impl<Alloc: Clone, Prefix: Clone, Suffix: Clone> Clone for Affix<Alloc, Prefix, Suffix>[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]

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]

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

impl<Alloc, Prefix, Suffix> Send for Affix<Alloc, Prefix, Suffix> where
    Alloc: Send,
    Prefix: Send,
    Suffix: Send

impl<Alloc, Prefix, Suffix> Sync for Affix<Alloc, Prefix, Suffix> where
    Alloc: Sync,
    Prefix: Sync,
    Suffix: Sync

impl<Alloc, Prefix, Suffix> Unpin for Affix<Alloc, Prefix, Suffix> where
    Alloc: Unpin,
    Prefix: Unpin,
    Suffix: Unpin

impl<Alloc, Prefix, Suffix> UnwindSafe for Affix<Alloc, Prefix, Suffix> where
    Alloc: UnwindSafe,
    Prefix: UnwindSafe,
    Suffix: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.