pub enum VariableParseError {
UnrecognizedFormat(String),
MaxDepthExceeded(usize),
UnterminatedString,
UnterminatedCollection,
RegexError(Error),
}Expand description
Errors that can occur during variable parsing.
Variants§
UnrecognizedFormat(String)
The input format was not recognized.
MaxDepthExceeded(usize)
A nested structure was too deep.
UnterminatedString
A string literal was not properly terminated.
UnterminatedCollection
An array or hash was not properly closed.
RegexError(Error)
A regex pattern failed to compile.
Trait Implementations§
Source§impl Debug for VariableParseError
impl Debug for VariableParseError
Source§impl Display for VariableParseError
impl Display for VariableParseError
Source§impl Error for VariableParseError
impl Error for VariableParseError
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()
Auto Trait Implementations§
impl Freeze for VariableParseError
impl RefUnwindSafe for VariableParseError
impl Send for VariableParseError
impl Sync for VariableParseError
impl Unpin for VariableParseError
impl UnsafeUnpin for VariableParseError
impl UnwindSafe for VariableParseError
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