Struct perplex::item_set::ItemSets [−][src]
pub struct ItemSets(_);
All item sets of a grammar.
Methods
impl ItemSets
[src]
impl ItemSets
pub fn new(sets: Vec<ItemSet>) -> ItemSets
[src]
pub fn new(sets: Vec<ItemSet>) -> ItemSets
Create a new list of item sets.
pub fn compute(grammar: &Grammar) -> ItemSets
[src]
pub fn compute(grammar: &Grammar) -> ItemSets
Compute the item sets for a grammar.
pub fn all(&self) -> &[ItemSet]
[src]
pub fn all(&self) -> &[ItemSet]
Get the item sets in the grammar.
pub fn pretty<'a>(
&'a self,
grammar: &'a Grammar
) -> Pretty<&'a Grammar, &'a Self>
[src]
pub fn pretty<'a>(
&'a self,
grammar: &'a Grammar
) -> Pretty<&'a Grammar, &'a Self>
Get a pretty printer for this item set.
pub fn compress(&mut self)
[src]
pub fn compress(&mut self)
Compress all item sets.
Trait Implementations
impl Debug for ItemSets
[src]
impl Debug for ItemSets
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ItemSets
[src]
impl Clone for ItemSets
fn clone(&self) -> ItemSets
[src]
fn clone(&self) -> ItemSets
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for ItemSets
[src]
impl PartialEq for ItemSets
fn eq(&self, other: &ItemSets) -> bool
[src]
fn eq(&self, other: &ItemSets) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ItemSets) -> bool
[src]
fn ne(&self, other: &ItemSets) -> bool
This method tests for !=
.
impl Eq for ItemSets
[src]
impl Eq for ItemSets
impl Hash for ItemSets
[src]
impl Hash for ItemSets
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Index<ItemSetId> for ItemSets
[src]
impl Index<ItemSetId> for ItemSets
type Output = ItemSet
The returned type after indexing.
fn index(&self, index: ItemSetId) -> &ItemSet
[src]
fn index(&self, index: ItemSetId) -> &ItemSet
Performs the indexing (container[index]
) operation.
impl IndexMut<ItemSetId> for ItemSets
[src]
impl IndexMut<ItemSetId> for ItemSets