#[non_exhaustive]pub enum ReErr {
Paren,
CloseParen,
Bracket,
Range,
Class,
Backslash,
Brace,
BraceContent,
Repeat,
TooBig,
}Expand description
why an expression does not compile
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.
Paren
an open group without its end
CloseParen
a group’s end without its start
Bracket
a bracket expression without its ‘]’
Range
a range whose end comes before its start
Class
[:name:] with a name that is no class
Backslash
a ’' at the end
Brace
{ without }
BraceContent
what is between { and } is no interval
Repeat
a repetition of something that cannot repeat
TooBig
the program would be too long
Implementations§
Trait Implementations§
impl Copy for ReErr
impl Eq for ReErr
impl StructuralPartialEq for ReErr
Auto Trait Implementations§
impl Forget for ReErr
impl Freeze for ReErr
impl RefUnwindSafe for ReErr
impl Send for ReErr
impl Sync for ReErr
impl Unpin for ReErr
impl UnsafeUnpin for ReErr
impl UnwindSafe for ReErr
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