Struct suffix_tree::SuffixTree
[−]
[src]
pub struct SuffixTree<'s> { /* fields omitted */ }
A suffix tree.
Currently, most of the interesting operations are defined on the Node
type, which can be retrieved from a SuffixTree
via its root
method.
In the future, those operations may be promoted directly to SuffixTree
,
in addition to searching for text.
Methods
impl<'s> SuffixTree<'s>
[src]
fn new<S>(text: S) -> SuffixTree<'s> where
S: Into<Cow<'s, str>>,
S: Into<Cow<'s, str>>,
fn from_suffix_table(sa: &SuffixTable) -> SuffixTree<'s>
fn text(&self) -> &str
Get the text that is indexed by this suffix tree.
fn root(&self) -> &Node
Retrieve the root node.
fn label(&self, node: &Node) -> &[u8]
Get the path label into node
.