Struct lrtable::statetable::Conflicts
source · pub struct Conflicts<StorageT> { /* private fields */ }
Implementations§
source§impl<StorageT: 'static + Hash + PrimInt + Unsigned> Conflicts<StorageT>where
usize: AsPrimitive<StorageT>,
impl<StorageT: 'static + Hash + PrimInt + Unsigned> Conflicts<StorageT>where
usize: AsPrimitive<StorageT>,
sourcepub fn rr_conflicts(
&self,
) -> impl Iterator<Item = &(PIdx<StorageT>, PIdx<StorageT>, StIdx<StorageT>)>
pub fn rr_conflicts( &self, ) -> impl Iterator<Item = &(PIdx<StorageT>, PIdx<StorageT>, StIdx<StorageT>)>
Return an iterator over all reduce/reduce conflicts.
sourcepub fn sr_conflicts(
&self,
) -> impl Iterator<Item = &(TIdx<StorageT>, PIdx<StorageT>, StIdx<StorageT>)>
pub fn sr_conflicts( &self, ) -> impl Iterator<Item = &(TIdx<StorageT>, PIdx<StorageT>, StIdx<StorageT>)>
Return an iterator over all shift/reduce conflicts.
sourcepub fn pp(&self, grm: &YaccGrammar<StorageT>) -> String
👎Deprecated since 0.10.1: Please use pp_rr() and pp_sr() instead
pub fn pp(&self, grm: &YaccGrammar<StorageT>) -> String
Returns a pretty-printed version of the conflicts.
sourcepub fn pp_rr(&self, grm: &YaccGrammar<StorageT>) -> String
pub fn pp_rr(&self, grm: &YaccGrammar<StorageT>) -> String
Returns a pretty-printed version of the reduce/reduce conflicts.
sourcepub fn pp_sr(&self, grm: &YaccGrammar<StorageT>) -> String
pub fn pp_sr(&self, grm: &YaccGrammar<StorageT>) -> String
Returns a pretty-printed version of the shift/reduce conflicts.
Trait Implementations§
source§impl<'de, StorageT> Deserialize<'de> for Conflicts<StorageT>where
StorageT: Deserialize<'de>,
impl<'de, StorageT> Deserialize<'de> for Conflicts<StorageT>where
StorageT: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<StorageT> Freeze for Conflicts<StorageT>
impl<StorageT> RefUnwindSafe for Conflicts<StorageT>where
StorageT: RefUnwindSafe,
impl<StorageT> Send for Conflicts<StorageT>where
StorageT: Send,
impl<StorageT> Sync for Conflicts<StorageT>where
StorageT: Sync,
impl<StorageT> Unpin for Conflicts<StorageT>where
StorageT: Unpin,
impl<StorageT> UnwindSafe for Conflicts<StorageT>where
StorageT: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more