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§
source§impl ExceptionId
impl ExceptionId
sourcepub fn is_deprecated(self) -> bool
pub fn is_deprecated(self) -> bool
Returns true if the exception is deprecated
assert!(spdx::exception_id("Nokia-Qt-exception-1.1").unwrap().is_deprecated());
Trait Implementations§
source§impl Clone for ExceptionId
impl Clone for ExceptionId
source§fn clone(&self) -> ExceptionId
fn clone(&self) -> ExceptionId
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 ExceptionId
impl Debug for ExceptionId
source§impl Ord for ExceptionId
impl Ord for ExceptionId
source§impl PartialEq for ExceptionId
impl PartialEq for ExceptionId
source§impl PartialOrd for ExceptionId
impl PartialOrd for ExceptionId
impl Copy for ExceptionId
impl Eq for ExceptionId
Auto Trait Implementations§
impl Freeze for ExceptionId
impl RefUnwindSafe for ExceptionId
impl Send for ExceptionId
impl Sync for ExceptionId
impl Unpin for ExceptionId
impl UnwindSafe for ExceptionId
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)