[][src]Struct spdx::ExceptionId

pub struct ExceptionId {
    pub name: &'static str,
    // some fields omitted
}

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

Methods

impl ExceptionId[src]

pub fn is_deprecated(self) -> bool[src]

Returns true if the exception is deprecated

assert!(spdx::exception_id("Nokia-Qt-exception-1.1").unwrap().is_deprecated());

Trait Implementations

impl Clone for ExceptionId[src]

impl Copy for ExceptionId[src]

impl Debug for ExceptionId[src]

impl Eq for ExceptionId[src]

impl Ord for ExceptionId[src]

impl PartialEq<ExceptionId> for ExceptionId[src]

impl PartialOrd<ExceptionId> for ExceptionId[src]

impl StructuralEq for ExceptionId[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.