pub struct ResultArray<T: Sized> { /* private fields */ }
Expand description

A pre-allocated, mlocked, and prefaulted array of the given size and type for storing results. This is useful to the storage of results from interfering with measurements.

Implementations

Create a new ResultArray with the given number of elements.

Panics
  • If unable to create the array.
  • If the size of the array is not a multiple of the page size.
  • If the length of the array is longer than isize::MAX.

Returns an iterator over only pushed elements.

Push the item to the end of the array.

Panics

if the array is full.

Trait Implementations

Executes the destructor for this type. 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 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.