#[non_exhaustive]pub enum ErrorKind {
UnclosedClass,
InvalidRange(char, char),
UnopenedAlternates,
UnclosedAlternates,
DanglingEscape,
}Expand description
The kind of error that can occur when parsing a glob pattern.
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.
UnclosedClass
An unclosed character class, e.g., [a-z.
InvalidRange(char, char)
An invalid character range, e.g., [z-a].
UnopenedAlternates
An unopened alternation, e.g., }.
UnclosedAlternates
An unclosed alternation, e.g., {a,b.
DanglingEscape
A dangling escape, e.g., a pattern ending with \.
Trait Implementations§
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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