Enum ielr::input::AddProductionError
source · pub enum AddProductionError {
RhsTooLong,
TooManyProductions,
}
Expand description
Error while trying to add a new production to the grammar.
Variants§
RhsTooLong
The right-hand side of the production exceeds u16::MAX
.
TooManyProductions
There are already u16::MAX
productions associated with the given left-hand
side.
Trait Implementations§
source§impl Clone for AddProductionError
impl Clone for AddProductionError
source§fn clone(&self) -> AddProductionError
fn clone(&self) -> AddProductionError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AddProductionError
impl Debug for AddProductionError
source§impl Hash for AddProductionError
impl Hash for AddProductionError
source§impl Ord for AddProductionError
impl Ord for AddProductionError
source§fn cmp(&self, other: &AddProductionError) -> Ordering
fn cmp(&self, other: &AddProductionError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<AddProductionError> for AddProductionError
impl PartialEq<AddProductionError> for AddProductionError
source§fn eq(&self, other: &AddProductionError) -> bool
fn eq(&self, other: &AddProductionError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<AddProductionError> for AddProductionError
impl PartialOrd<AddProductionError> for AddProductionError
source§fn partial_cmp(&self, other: &AddProductionError) -> Option<Ordering>
fn partial_cmp(&self, other: &AddProductionError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for AddProductionError
impl Eq for AddProductionError
impl StructuralEq for AddProductionError
impl StructuralPartialEq for AddProductionError
Auto Trait Implementations§
impl RefUnwindSafe for AddProductionError
impl Send for AddProductionError
impl Sync for AddProductionError
impl Unpin for AddProductionError
impl UnwindSafe for AddProductionError
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