pub struct ExprParseError { /* private fields */ }Expand description
An error from the strict expression parsers.
LicenseExpr::parse never fails (malformed input degrades to verbatim
names); LicenseExpr::parse_strict and LicenseExpr::parse_spdx
report malformed input with this error instead, so callers can fall back
to treating the field as an opaque literal.
Implementations§
Trait Implementations§
Source§impl Clone for ExprParseError
impl Clone for ExprParseError
Source§impl Debug for ExprParseError
impl Debug for ExprParseError
Source§impl Display for ExprParseError
impl Display for ExprParseError
impl Eq for ExprParseError
Source§impl Error for ExprParseError
impl Error for ExprParseError
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 ExprParseError
impl PartialEq for ExprParseError
impl StructuralPartialEq for ExprParseError
Auto Trait Implementations§
impl Freeze for ExprParseError
impl RefUnwindSafe for ExprParseError
impl Send for ExprParseError
impl Sync for ExprParseError
impl Unpin for ExprParseError
impl UnsafeUnpin for ExprParseError
impl UnwindSafe for ExprParseError
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