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
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<I> RefUnwindSafe for BufferPoolOptions<I> where
I: RefUnwindSafe,
impl<I> Send for BufferPoolOptions<I> where
I: Send,
impl<I> Sync for BufferPoolOptions<I> where
I: Sync,
impl<I> Unpin for BufferPoolOptions<I> where
I: Unpin,
impl<I> UnwindSafe for BufferPoolOptions<I> where
I: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more