pub enum LicenseError {
Empty,
Invalid(String),
}Expand description
An error parsing a LicenseExpression.
Variants§
Empty
The expression is empty.
Invalid(String)
The expression is not a valid SPDX license expression.
Trait Implementations§
Source§impl Debug for LicenseError
impl Debug for LicenseError
Source§impl Display for LicenseError
impl Display for LicenseError
Source§impl Error for LicenseError
impl Error for LicenseError
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 From<LicenseError> for ManifestError
impl From<LicenseError> for ManifestError
Source§fn from(source: LicenseError) -> Self
fn from(source: LicenseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LicenseError
impl RefUnwindSafe for LicenseError
impl Send for LicenseError
impl Sync for LicenseError
impl Unpin for LicenseError
impl UnsafeUnpin for LicenseError
impl UnwindSafe for LicenseError
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