#[non_exhaustive]pub struct ExpressionParseError {
pub input: String,
pub span: Range<usize>,
pub kind: ExpressionParseErrorKind,
}
Expand description
An error returned in case a TargetExpression
cannot be parsed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.input: String
The string we tried to parse.
span: Range<usize>
The range of characters in the original string that resulted in this error.
kind: ExpressionParseErrorKind
The kind of error that occurred.
Trait Implementations§
Source§impl Clone for ExpressionParseError
impl Clone for ExpressionParseError
Source§fn clone(&self) -> ExpressionParseError
fn clone(&self) -> ExpressionParseError
Returns a copy 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 ExpressionParseError
impl Debug for ExpressionParseError
Source§impl Display for ExpressionParseError
impl Display for ExpressionParseError
Source§impl Error for ExpressionParseError
impl Error for ExpressionParseError
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 ExpressionParseError
impl PartialEq for ExpressionParseError
impl Eq for ExpressionParseError
impl StructuralPartialEq for ExpressionParseError
Auto Trait Implementations§
impl Freeze for ExpressionParseError
impl RefUnwindSafe for ExpressionParseError
impl Send for ExpressionParseError
impl Sync for ExpressionParseError
impl Unpin for ExpressionParseError
impl UnwindSafe for ExpressionParseError
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