Struct randomx_rs::RandomXCache[][src]

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

Cache structure

Implementations

Creates a new cache object, allocates memory to the cache object and initializes it with he key value, error on failure.

flags is any combination of the following two flags:

  • FLAG_LARGE_PAGES
  • FLAG_JIT

and (optionally) one of the following flags (depending on instruction set supported):

  • FLAG_ARGON2_SSSE3
  • FLAG_ARGON2_AVX2

key is a sequence of u8 used to initialize SuperScalarHash.

Trait Implementations

Formats the value using the given formatter. Read more

De-allocates memory for the cache 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.