pub struct OneShot<const N: u32>;

Trait Implementations

Returns the “default value” for a type. Read more

The internal representation to use for storing integers

The type of symbol this [Model] describes

Invalid symbol error

Given a symbol, return an interval representing the probability of that symbol occurring. Read more

The maximum denominator used for probability ranges. See [Model::probability]. Read more

Given a value, return the symbol whose probability range it falls in. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The internal representation to use for storing integers

The type of symbol this [Model] describes

Invalid symbol error

Given a symbol, return an interval representing the probability of that symbol occurring. Read more

The maximum denominator used for probability ranges. See [Model::probability]. Read more

Given a value, return the symbol whose probability range it falls in. Read more

The total number of sumbols to encode

The denominator for probability ranges. See [Model::probability]. Read more

Update the current state of the model with the latest symbol. 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.