Struct randomx_rs::RandomXDataset[][src]

pub struct RandomXDataset { /* fields omitted */ }
Expand description

Dataset structure

Implementations

Creates a new dataset object, allocates memory to the dataset object and initializes it, error on failure.

flags is one of the following:

  • FLAG_DEFAULT
  • FLAG_LARGE_PAGES

cache is a cache object.

start is the item number where initialization should start, recommended to pass in 0.

Returns the number of items in the dataset or an error on failure.

Returns the values of the internal memory buffer of the dataset or an error on failure.

Trait Implementations

Formats the value using the given formatter. Read more

De-allocates memory for the dataset object.

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.