Struct spdx::ExceptionId
source · [−]pub struct ExceptionId {
pub name: &'static str,
/* private fields */
}
Expand description
Unique identifier for a particular exception
let exception_id = spdx::exception_id("LLVM-exception").unwrap();
assert!(!exception_id.is_deprecated());
Fields
name: &'static str
The short identifier for the exception
Implementations
Returns true if the exception is deprecated
assert!(spdx::exception_id("Nokia-Qt-exception-1.1").unwrap().is_deprecated());
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ExceptionId
impl Send for ExceptionId
impl Sync for ExceptionId
impl Unpin for ExceptionId
impl UnwindSafe for ExceptionId
Blanket Implementations
Mutably borrows from an owned value. Read more