pub enum BindingError {
Invalid(String),
MissingParameter(String, usize),
InvalidInt(ParseIntError),
ForParameter {
error: Box<BindingError>,
binding: String,
index: usize,
},
}Expand description
Errors specific to bindings.
Variants§
Invalid(String)
Error when a binding is invalid.
MissingParameter(String, usize)
Binding is missing a parameter.
InvalidInt(ParseIntError)
Integer parsing error.
ForParameter
Wrapped error within the context of a binding parameter.
Trait Implementations§
Source§impl Debug for BindingError
impl Debug for BindingError
Source§impl Display for BindingError
impl Display for BindingError
Source§impl Error for BindingError
impl Error for BindingError
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 From<BindingError> for Error
impl From<BindingError> for Error
Source§fn from(source: BindingError) -> Self
fn from(source: BindingError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for BindingError
impl From<ParseIntError> for BindingError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BindingError
impl RefUnwindSafe for BindingError
impl Send for BindingError
impl Sync for BindingError
impl Unpin for BindingError
impl UnwindSafe for BindingError
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