Enum adivon::suffix_tree::Node [] [src]

pub enum Node<'a, T: 'a> {
    Internal {
        data: &'a [T],
        offsets: VecMap<usize>,
        terminates: VecMap<usize>,
        children: BTreeMap<T, Node<'a, T>>,
        suffix_link: Rawlink<Node<'a, T>>,
    },
    Root {
        children: BTreeMap<T, Node<'a, T>>,
    },
}

A node in SuffixTree

Variants

Fields of Internal

the edge label

{ text index in root: start position of offset}

text terminates at this node, suffix offset: { text index in root: suffix offset}

Fields of Root

Methods

impl<'a, T: Ord + Copy + Debug> Node<'a, T>
[src]

Trait Implementations

impl<'a, T: Debug + 'a> Debug for Node<'a, T>
[src]

Formats the value using the given formatter.

impl<'a, T: Clone + 'a> Clone for Node<'a, T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more