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 = &(TIdx<StorageT>, PIdx<StorageT>, PIdx<StorageT>, StIdx<StorageT>)>
pub fn rr_conflicts( &self, ) -> impl Iterator<Item = &(TIdx<StorageT>, 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, __Context> BorrowDecode<'__de, __Context> for Conflicts<StorageT>where
StorageT: BorrowDecode<'__de, __Context>,
impl<'__de, StorageT, __Context> BorrowDecode<'__de, __Context> for Conflicts<StorageT>where
StorageT: BorrowDecode<'__de, __Context>,
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
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