[][src]Struct alloc_compose::SegregateAlloc

pub struct SegregateAlloc<Small, Large> {
    pub small: Small,
    pub large: Large,
    // some fields omitted
}

Dispatches calls to AllocRef between two allocators depending on the size allocated.

All allocations smaller than or equal to threshold will be dispatched to Small. The others will go to Large.

Fields

small: Smalllarge: Large

Trait Implementations

impl<Small, Large> AllocRef for SegregateAlloc<Small, Large> where
    Small: AllocRef,
    Large: AllocRef
[src]

impl<Small: Clone, Large: Clone> Clone for SegregateAlloc<Small, Large>[src]

impl<Small: Copy, Large: Copy> Copy for SegregateAlloc<Small, Large>[src]

impl<Small: Debug, Large: Debug> Debug for SegregateAlloc<Small, Large>[src]

impl<Small, Large> Owns for SegregateAlloc<Small, Large> where
    Small: Owns,
    Large: Owns
[src]

Auto Trait Implementations

impl<Small, Large> Send for SegregateAlloc<Small, Large> where
    Large: Send,
    Small: Send

impl<Small, Large> Sync for SegregateAlloc<Small, Large> where
    Large: Sync,
    Small: Sync

impl<Small, Large> Unpin for SegregateAlloc<Small, Large> where
    Large: Unpin,
    Small: Unpin

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.