Trait SPDXLicensed

Source
pub trait SPDXLicensed: Licensed {
    // Provided methods
    fn set_license_checked(&self, license: &str) { ... }
    fn to_license(&self) -> Option<&dyn License> { ... }
    fn is_osi_approved(&self) -> bool { ... }
    fn is_deprecated(&self) -> bool { ... }
}

Provided Methods§

Source

fn set_license_checked(&self, license: &str)

Source

fn to_license(&self) -> Option<&dyn License>

Source

fn is_osi_approved(&self) -> bool

Source

fn is_deprecated(&self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§