pub struct KnowledgeTree { /* private fields */ }Expand description
A tree that stores the relationship between input and output words
Implementations§
Source§impl KnowledgeTree
impl KnowledgeTree
Sourcepub fn roots(&self) -> &Vec<KnowledgeNode>
pub fn roots(&self) -> &Vec<KnowledgeNode>
Get the roots of the tree
Sourcepub fn num_added_words(&self) -> usize
pub fn num_added_words(&self) -> usize
Get the number of words added
Trait Implementations§
Source§impl Clone for KnowledgeTree
impl Clone for KnowledgeTree
Source§fn clone(&self) -> KnowledgeTree
fn clone(&self) -> KnowledgeTree
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KnowledgeTree
impl Debug for KnowledgeTree
Auto Trait Implementations§
impl Freeze for KnowledgeTree
impl RefUnwindSafe for KnowledgeTree
impl Send for KnowledgeTree
impl Sync for KnowledgeTree
impl Unpin for KnowledgeTree
impl UnsafeUnpin for KnowledgeTree
impl UnwindSafe for KnowledgeTree
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more