Struct tugger_licensing::LicensedComponents [−][src]
pub struct LicensedComponents { /* fields omitted */ }
A collection of licensed components.
Implementations
impl LicensedComponents
[src]
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]
&mut self,
component: LicensedComponent
) -> Result<()>
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 Clone for LicensedComponents
[src]fn clone(&self) -> LicensedComponents
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for LicensedComponents
[src]
impl Default for LicensedComponents
[src]fn default() -> LicensedComponents
[src]
impl PartialEq<LicensedComponents> for LicensedComponents
[src]
impl PartialEq<LicensedComponents> for LicensedComponents
[src]fn eq(&self, other: &LicensedComponents) -> bool
[src]
fn ne(&self, other: &LicensedComponents) -> bool
[src]
Auto Trait Implementations
impl RefUnwindSafe for LicensedComponents
impl RefUnwindSafe for LicensedComponents
impl Send for LicensedComponents
impl Send for LicensedComponents
impl Sync for LicensedComponents
impl Sync for LicensedComponents
impl Unpin for LicensedComponents
impl Unpin for LicensedComponents
impl UnwindSafe for LicensedComponents
impl UnwindSafe for LicensedComponents