Struct pqgrams::PQGram
[−]
[src]
pub struct PQGram<L: ValidGramElement> { /* fields omitted */ }
A single 'gram in a profile.
Methods
impl<L: ValidGramElement> PQGram<L>
[src]
fn new(ps: Vec<Node<L>>, qs: Vec<Node<L>>) -> PQGram<L>
Build a PQGram from ancestors and siblings (ps & qs)
fn concat(&self, filler_as: L) -> Vec<L>
Concatenate ancestor and sibling nodes, replacing "Filler" nodes with the clones of filler_as. By convention string filler nodes might be represented "*" (as in the paper).
Trait Implementations
impl<L: Clone + ValidGramElement> Clone for PQGram<L>
[src]
fn clone(&self) -> PQGram<L>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<L: Debug + ValidGramElement> Debug for PQGram<L>
[src]
impl<L: PartialEq + ValidGramElement> PartialEq for PQGram<L>
[src]
fn eq(&self, __arg_0: &PQGram<L>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PQGram<L>) -> bool
This method tests for !=
.
impl<L: PartialOrd + ValidGramElement> PartialOrd for PQGram<L>
[src]
fn partial_cmp(&self, __arg_0: &PQGram<L>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &PQGram<L>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &PQGram<L>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &PQGram<L>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &PQGram<L>) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more