Struct capnp::message::HeapAllocator[][src]

pub struct HeapAllocator { /* fields omitted */ }

Standard segment allocator. Allocates each segment via alloc::alloc::alloc_zeroed().

Implementations

impl HeapAllocator[src]

pub fn new() -> HeapAllocator[src]

pub fn first_segment_words(self, value: u32) -> HeapAllocator[src]

Sets the size of the initial segment in words, where 1 word = 8 bytes.

pub fn allocation_strategy(self, value: AllocationStrategy) -> HeapAllocator[src]

Sets the allocation strategy for segments after the first one.

Trait Implementations

impl Allocator for HeapAllocator[src]

impl Debug for HeapAllocator[src]

Auto Trait Implementations

impl RefUnwindSafe for HeapAllocator

impl Send for HeapAllocator

impl Sync for HeapAllocator

impl Unpin for HeapAllocator

impl UnwindSafe for HeapAllocator

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, 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.