pub struct Node {
pub start: usize,
pub end: usize,
pub edges: [Option<usize>; 257],
pub suffix_link: Option<usize>,
}Expand description
A node in the SuffixTree
Fields§
§start: usizeThe index in the data where the edge leading to this node starts.
end: usizeThe index in the data where the edge leading to this node ends.
edges: [Option<usize>; 257]The potential sub nodes under this one. Each index in the array represent on of the
possible byte value. The index 256 is reserved for the end of data. Each element value is
an index in the SuffixTree::nodes(struct.SuffixTree.html#nodes.v) vector.
suffix_link: Option<usize>Suffix link (see Ukkonen’s algorithm).
Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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