pub struct MarkovRef {
pub name: String,
pub depth: usize,
}Expand description
Which Markov chain a pattern uses, as in \m{english:3}.
Fields§
§name: StringName of the wordlist that the chain is built from.
depth: usizeDepth of the chain. This is DEPTH_DEFAULT when the pattern does not say.
Implementations§
Trait Implementations§
impl Eq for MarkovRef
Source§impl Ord for MarkovRef
impl Ord for MarkovRef
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for MarkovRef
impl PartialOrd for MarkovRef
impl StructuralPartialEq for MarkovRef
Auto Trait Implementations§
impl Forget for MarkovRef
impl Freeze for MarkovRef
impl Move for MarkovRef
impl RefUnwindSafe for MarkovRef
impl Send for MarkovRef
impl Sync for MarkovRef
impl Unpin for MarkovRef
impl UnsafeUnpin for MarkovRef
impl UnwindSafe for MarkovRef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.