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: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)