pub struct Node<T>{ /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Node<T>where
T: Display + Debug + Eq + PartialEq + PartialOrd + Hash + Clone + Serialize + Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Node<T>where
T: Display + Debug + Eq + PartialEq + PartialOrd + Hash + Clone + Serialize + Deserialize<'de>,
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<T> SuffixNode<T> for Node<T>
impl<T> SuffixNode<T> for Node<T>
fn set_parent(&mut self, parent: usize)
fn get_parent(&self) -> Option<&usize>
fn get_child(&self, child: &Character<T>) -> Option<&usize>
fn get_child_mut(&mut self, child: &Character<T>) -> Option<&mut usize>
fn set_child(&mut self, edge: Character<T>, child: usize)
fn set_edge_length(&mut self, edge_length: usize)
fn get_end(&self) -> usize
fn get_edge_length(&self) -> usize
fn get_string_id(&self) -> Option<&usize>
fn get_start(&self) -> &usize
fn set_string_id(&mut self, string_id: usize)
fn set_start(&mut self, new_start: usize)
fn has_children(&self) -> bool
fn get_children(&self) -> &HashMap<Character<T>, usize>
fn is_leaf(&self) -> bool
Auto Trait Implementations§
impl<T> Freeze for Node<T>
impl<T> RefUnwindSafe for Node<T>where
T: RefUnwindSafe,
impl<T> Send for Node<T>where
T: Send,
impl<T> Sync for Node<T>where
T: Sync,
impl<T> Unpin for Node<T>where
T: Unpin,
impl<T> UnwindSafe for Node<T>where
T: UnwindSafe,
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> 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