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 duplicate 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)>
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 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.
Source§impl PartialEq for RepetitionError
impl PartialEq for RepetitionError
impl Copy for RepetitionError
impl Eq for RepetitionError
impl StructuralPartialEq for RepetitionError
Auto Trait Implementations§
impl Freeze for RepetitionError
impl RefUnwindSafe for RepetitionError
impl Send for RepetitionError
impl Sync for RepetitionError
impl Unpin for RepetitionError
impl UnwindSafe for RepetitionError
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