pub enum SpdxError {
Parse {
source: SpdxExpressionError,
},
PathExtension(String),
Io {
source: Error,
},
DateTimeParse {
source: ParseError,
},
TagValueParse(String),
}
Variants§
Parse
Fields
§
source: SpdxExpressionError
PathExtension(String)
Io
DateTimeParse
Fields
§
source: ParseError
TagValueParse(String)
Trait Implementations§
source§impl Error for SpdxError
impl Error for SpdxError
source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ParseError> for SpdxError
impl From<ParseError> for SpdxError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
source§impl From<SpdxExpressionError> for SpdxError
impl From<SpdxExpressionError> for SpdxError
source§fn from(source: SpdxExpressionError) -> Self
fn from(source: SpdxExpressionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SpdxError
impl Send for SpdxError
impl Sync for SpdxError
impl Unpin for SpdxError
impl !UnwindSafe for SpdxError
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