Struct parol::analysis::k_tuple::KTuple [−][src]
pub struct KTuple {
pub terminals: TerminalString,
pub k: usize,
}
Expand description
Terminal symbol string type
Fields
terminals: TerminalString
k: usize
Implementations
pub fn from_slice<'s, S, M>(others: &'s [S], m: M, k: usize) -> Self where
S: Clone,
M: Fn(&'s S) -> CompiledTerminal,
pub fn from_slice<'s, S, M>(others: &'s [S], m: M, k: usize) -> Self where
S: Clone,
M: Fn(&'s S) -> CompiledTerminal,
Creates a new object from a slice of other objects
Creates a new object from a vector of terminal symbols
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for KTuple
impl UnwindSafe for KTuple
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.