Enum artichoke::prelude::IncrementLinenoError
source · #[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)>
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 From<IncrementLinenoError> for Error
impl From<IncrementLinenoError> for Error
source§fn from(exception: IncrementLinenoError) -> Error
fn from(exception: IncrementLinenoError) -> Error
Converts to this type from the input type.
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<IncrementLinenoError> for IncrementLinenoError
impl PartialEq<IncrementLinenoError> for IncrementLinenoError
source§fn eq(&self, other: &IncrementLinenoError) -> bool
fn eq(&self, other: &IncrementLinenoError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<IncrementLinenoError> for IncrementLinenoError
impl PartialOrd<IncrementLinenoError> for IncrementLinenoError
source§fn partial_cmp(&self, other: &IncrementLinenoError) -> Option<Ordering>
fn partial_cmp(&self, other: &IncrementLinenoError) -> 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 more