pub struct LimitedBuffer<T> { /* fields omitted */ }
Expand description

Buffer limited by elements count.

Implementations

Creates a new buffer instance.

Arguments
  • limit - Buffer elements count limit

Creates a new buffer instance with provided capacity.

Arguments
  • limit - Buffer elements count limit

Trait Implementations

Adds a new element to the buffer. Read more

Returns the buffer length.

Checks if the buffer reached the limit.

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

Returns a plain mutable slice, which is used to implement the rest of the parallel methods. Read more

Returns a parallel iterator over mutable subslices separated by elements that match the separator. Read more

Returns a parallel iterator over at most chunk_size elements of self at a time. The chunks are mutable and do not overlap. Read more

Returns a parallel iterator over chunk_size elements of self at a time. The chunks are mutable and do not overlap. Read more

Sorts the slice in parallel. Read more

Sorts the slice in parallel with a comparator function. Read more

Sorts the slice in parallel with a key extraction function. Read more

Sorts the slice in parallel, but may not preserve the order of equal elements. Read more

Sorts the slice in parallel with a comparator function, but may not preserve the order of equal elements. Read more

Sorts the slice in parallel with a key extraction function, but may not preserve the order of equal elements. Read more

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 alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. 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.