[][src]Struct hulunbuir::Allocator

pub struct Allocator<'a, T: Keep> { /* fields omitted */ }

Methods

impl<'a, T: Keep> Allocator<'a, T>[src]

pub fn new(collector: &'a Collector<T>, local_max: usize) -> Self[src]

pub fn slot_len(&self) -> usize[src]

impl<'a, T: Keep> Allocator<'a, T>[src]

pub fn allocate(&mut self, value: T) -> Value<T>[src]

pub fn clean(&mut self)[src]

impl<'a, T: Keep> Allocator<'a, T>[src]

pub fn entry(&self) -> Value<T>[src]

Trait Implementations

impl<'a, T: Keep> Drop for Allocator<'a, T>[src]

Auto Trait Implementations

impl<'a, T> Send for Allocator<'a, T> where
    T: Sync

impl<'a, T> Unpin for Allocator<'a, T> where
    T: Unpin

impl<'a, T> Sync for Allocator<'a, T> where
    T: Send + Sync

impl<'a, T> UnwindSafe for Allocator<'a, T> where
    T: RefUnwindSafe

impl<'a, T> RefUnwindSafe for Allocator<'a, T> where
    T: RefUnwindSafe

Blanket Implementations

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

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

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.

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

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

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