Struct markov_strings::MarkovResult[][src]

pub struct MarkovResult {
    pub text: String,
    pub score: u16,
    pub refs: Vec<usize>,
    pub tries: u16,
}
Expand description

Struct holding the generator’s results.

Fields

text: String

The generated text

score: u16

A relative value based on the possible number of permutations that led to this result. Higher is usually “better”, but the threshold depends on your corpus.

refs: Vec<usize>

The list of references ids that were used to create this result. To retrieve the original values

tries: u16

The number of tries it took to generate the result

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. 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.