Struct tugger_licensing::LicensedComponents[][src]

pub struct LicensedComponents { /* fields omitted */ }

A collection of licensed components.

Implementations

impl LicensedComponents[src]

pub fn iter_components(&self) -> impl Iterator<Item = &LicensedComponent>[src]

Iterate over components in this collection.

pub fn add_component(&mut self, component: LicensedComponent)[src]

Add a component to this collection.

pub fn add_spdx_only_component(
    &mut self,
    component: LicensedComponent
) -> Result<()>
[src]

Add a component to this collection, but only if it only contains SPDX license identifiers.

pub fn all_spdx_licenses(&self) -> BTreeSet<(LicenseId, Option<ExceptionId>)>[src]

Obtain all SPDX license identifiers referenced by registered components.

Trait Implementations

impl Clone for LicensedComponents[src]

impl Debug for LicensedComponents[src]

impl Default for LicensedComponents[src]

impl PartialEq<LicensedComponents> for LicensedComponents[src]

impl StructuralPartialEq for LicensedComponents[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.