#[non_exhaustive]pub enum IncrementLinenoError {
Overflow(usize),
}
Expand description
Errors encountered when incrementing line numbers on parser state.
Errors include overflows of the interpreters line counter.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Overflow(usize)
An overflow occurred when incrementing the line number.
This error is reported based on the internal parser storage width and contains the max value the parser can store.
Trait Implementations§
Source§impl Clone for IncrementLinenoError
impl Clone for IncrementLinenoError
Source§fn clone(&self) -> IncrementLinenoError
fn clone(&self) -> IncrementLinenoError
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 IncrementLinenoError
impl Debug for IncrementLinenoError
Source§impl Display for IncrementLinenoError
impl Display for IncrementLinenoError
Source§impl Error for IncrementLinenoError
impl Error for IncrementLinenoError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl Hash for IncrementLinenoError
impl Hash for IncrementLinenoError
Source§impl Ord for IncrementLinenoError
impl Ord for IncrementLinenoError
Source§fn cmp(&self, other: &IncrementLinenoError) -> Ordering
fn cmp(&self, other: &IncrementLinenoError) -> 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 for IncrementLinenoError
impl PartialEq for IncrementLinenoError
Source§impl PartialOrd for IncrementLinenoError
impl PartialOrd for IncrementLinenoError
impl Copy for IncrementLinenoError
impl Eq for IncrementLinenoError
impl StructuralPartialEq for IncrementLinenoError
Auto Trait Implementations§
impl Freeze for IncrementLinenoError
impl RefUnwindSafe for IncrementLinenoError
impl Send for IncrementLinenoError
impl Sync for IncrementLinenoError
impl Unpin for IncrementLinenoError
impl UnwindSafe for IncrementLinenoError
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