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: StringThe generated text
score: u16A 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: u16The number of tries it took to generate the result
Trait Implementations§
Source§impl Debug for MarkovResult
impl Debug for MarkovResult
Source§impl<'de> Deserialize<'de> for MarkovResult
impl<'de> Deserialize<'de> for MarkovResult
Source§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
Source§impl Hash for MarkovResult
impl Hash for MarkovResult
Source§impl PartialEq for MarkovResult
impl PartialEq for MarkovResult
Source§impl Serialize for MarkovResult
impl Serialize for MarkovResult
impl Eq for MarkovResult
impl StructuralPartialEq for MarkovResult
Auto Trait Implementations§
impl Freeze for MarkovResult
impl RefUnwindSafe for MarkovResult
impl Send for MarkovResult
impl Sync for MarkovResult
impl Unpin for MarkovResult
impl UnwindSafe for MarkovResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more