Struct target_spec::errors::ExpressionParseError
source · [−]#[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: StringThe string we tried to parse.
span: Range<usize>The range of characters in the original string that resulted in this error.
kind: ExpressionParseErrorKindThe kind of error that occurred.
Trait Implementations
sourceimpl Clone for ExpressionParseError
impl Clone for ExpressionParseError
sourcefn clone(&self) -> ExpressionParseError
fn clone(&self) -> ExpressionParseError
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ExpressionParseError
impl Debug for ExpressionParseError
sourceimpl Display for ExpressionParseError
impl Display for ExpressionParseError
sourceimpl Error for ExpressionParseError
impl Error for ExpressionParseError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl PartialEq<ExpressionParseError> for ExpressionParseError
impl PartialEq<ExpressionParseError> for ExpressionParseError
sourcefn eq(&self, other: &ExpressionParseError) -> bool
fn eq(&self, other: &ExpressionParseError) -> bool
impl Eq for ExpressionParseError
impl StructuralEq for ExpressionParseError
impl StructuralPartialEq for ExpressionParseError
Auto Trait Implementations
impl RefUnwindSafe for ExpressionParseError
impl Send for ExpressionParseError
impl Sync for ExpressionParseError
impl Unpin for ExpressionParseError
impl UnwindSafe for ExpressionParseError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more