Enum pomsky_syntax::error::RepetitionError
source · pub enum RepetitionError {
NotAscending,
QmSuffix,
Multi,
}Expand description
An error indicating an invalid repetition, e.g. x{4,2}
Variants§
NotAscending
The second number in the repetition is greater than the first
QmSuffix
Question mark after a repetition, e.g. x{3}?
Multi
Multiple consecutive repetitions
Trait Implementations§
source§impl Clone for RepetitionError
impl Clone for RepetitionError
source§fn clone(&self) -> RepetitionError
fn clone(&self) -> RepetitionError
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 RepetitionError
impl Debug for RepetitionError
source§impl Display for RepetitionError
impl Display for RepetitionError
source§impl Error for RepetitionError
impl Error for RepetitionError
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<RepetitionError> for ParseErrorKind
impl From<RepetitionError> for ParseErrorKind
source§fn from(e: RepetitionError) -> Self
fn from(e: RepetitionError) -> Self
Converts to this type from the input type.