Struct bms_rs::parse::rng::RngMock[][src]

pub struct RngMock<const N: usize>(pub [u32; N]);
Expand description

A random generator for mocking. This generates the number from the array in rotation.

Tuple Fields

0: [u32; N]

Trait Implementations

Generates a random integer within the range. Returning the number outside the range will result weird.

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.