Struct markov_strings::MarkovResult [−][src]
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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.