pub enum MangleError {
NotMangleExpr(String),
InvalidSubstExpr(String),
InvalidTranslExpr(String),
RegexError(String),
}Expand description
Error type for mangling expression parsing
Variants§
NotMangleExpr(String)
Not a substitution or translation expression
InvalidSubstExpr(String)
Invalid substitution expression
InvalidTranslExpr(String)
Invalid translation expression
RegexError(String)
Regex compilation error
Trait Implementations§
Source§impl Clone for MangleError
impl Clone for MangleError
Source§fn clone(&self) -> MangleError
fn clone(&self) -> MangleError
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 MangleError
impl Debug for MangleError
Source§impl Display for MangleError
impl Display for MangleError
Source§impl Error for MangleError
impl Error for MangleError
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 PartialEq for MangleError
impl PartialEq for MangleError
impl Eq for MangleError
impl StructuralPartialEq for MangleError
Auto Trait Implementations§
impl Freeze for MangleError
impl RefUnwindSafe for MangleError
impl Send for MangleError
impl Sync for MangleError
impl Unpin for MangleError
impl UnwindSafe for MangleError
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