Struct redox_buffer_pool::BufferPoolOptions[][src]

pub struct BufferPoolOptions<I> { /* fields omitted */ }
Expand description

Various options used by the buffer pool mainly to limit the range of possible sizes and alignments.

Implementations

Use the default buffer pool options.

Set the maximum possible alignment, causing allocations with larger alignments to fail immediately. This will also override the minimum possible alignment, if this would happen to be smaller than that.

Panics

This method will panic if the alignment is not a valid power of two, or if it’s zero.

Reduce the minimum alignment to 1.

Set the minimum possible alignment, causing allocations with smaller alignments to use this alignment instead. This will override the maximum alignment, if this were to be larger than that.

Panics

This method will panic if the alignment is not a power of two, or if it’s zero.

Allow all possible alignments when allocating.

Set the maximum size that allocations can have.

Set the minimum size that allocations can have. While this will not affect the lengths of the buffer slices, it will round their capacities up to this number, giving them extra space that they can optionally expand to.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

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

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.