[][src]Struct growable::GrowablePoolBuilder

pub struct GrowablePoolBuilder { /* fields omitted */ }

A customizable GrowablePool builder.

Examples

  let _ = GrowablePool::builder()
      .with_default_capacity(128)
      .with_default_ptr_alignment(16)
      .with_capacity(512)
      .enable_overgrow(true)
      .build();

Methods

impl GrowablePoolBuilder
[src]

Creates a new pool builder with default options.

If set to false all returning Growable will be dropped if there is not enough free space available in a pool.

Sets the default capacity for each allocated Growable.

Sets the default ptr alignment for each allocated Growable.

Sets a pool capacity used for every pool reallocation. Note that with overgrow enabled it is possible for the pool to grow beyond this capacity. If set to zero the pool will only allocate a Growable on an explicit allocation request.

Creates a new GrowablePool using this builder.

Trait Implementations

impl Eq for GrowablePoolBuilder
[src]

impl PartialEq<GrowablePoolBuilder> for GrowablePoolBuilder
[src]

impl Default for GrowablePoolBuilder
[src]

impl Clone for GrowablePoolBuilder
[src]

Performs copy-assignment from source. Read more

impl Debug for GrowablePoolBuilder
[src]

Auto Trait Implementations

impl Send for GrowablePoolBuilder

impl Sync for GrowablePoolBuilder

Blanket Implementations

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

impl<T> From for T
[src]

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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