pub enum SubstitutionError {
MissingGroup(usize),
UnexpectedWildcard,
}
Expand description
A pattern substitution error
Variants§
MissingGroup(usize)
No value supplied for capture group
UnexpectedWildcard
Wildcard char *?[..]
is outside of the capture group
Trait Implementations§
Source§impl Debug for SubstitutionError
impl Debug for SubstitutionError
Source§impl Display for SubstitutionError
impl Display for SubstitutionError
Source§impl Error for SubstitutionError
impl Error for SubstitutionError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Auto Trait Implementations§
impl Freeze for SubstitutionError
impl RefUnwindSafe for SubstitutionError
impl Send for SubstitutionError
impl Sync for SubstitutionError
impl Unpin for SubstitutionError
impl UnwindSafe for SubstitutionError
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