Struct tugger_licensing::LicensedComponents
source · [−]pub struct LicensedComponents { /* private fields */ }
Expand description
A collection of licensed components.
Implementations
sourceimpl LicensedComponents
impl LicensedComponents
sourcepub fn iter_components(&self) -> impl Iterator<Item = &LicensedComponent>
pub fn iter_components(&self) -> impl Iterator<Item = &LicensedComponent>
Iterate over components in this collection.
sourcepub fn add_component(&mut self, component: LicensedComponent)
pub fn add_component(&mut self, component: LicensedComponent)
Add a component to this collection.
sourcepub fn add_spdx_only_component(
&mut self,
component: LicensedComponent
) -> Result<()>
pub fn add_spdx_only_component(
&mut self,
component: LicensedComponent
) -> Result<()>
Add a component to this collection, but only if it only contains SPDX license identifiers.
sourcepub fn all_spdx_licenses(&self) -> BTreeSet<(LicenseId, Option<ExceptionId>)>
pub fn all_spdx_licenses(&self) -> BTreeSet<(LicenseId, Option<ExceptionId>)>
Obtain all SPDX license identifiers referenced by registered components.
Trait Implementations
sourceimpl Clone for LicensedComponents
impl Clone for LicensedComponents
sourcefn clone(&self) -> LicensedComponents
fn clone(&self) -> LicensedComponents
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LicensedComponents
impl Debug for LicensedComponents
sourceimpl Default for LicensedComponents
impl Default for LicensedComponents
sourcefn default() -> LicensedComponents
fn default() -> LicensedComponents
Returns the “default value” for a type. Read more
sourceimpl PartialEq<LicensedComponents> for LicensedComponents
impl PartialEq<LicensedComponents> for LicensedComponents
sourcefn eq(&self, other: &LicensedComponents) -> bool
fn eq(&self, other: &LicensedComponents) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LicensedComponents) -> bool
fn ne(&self, other: &LicensedComponents) -> bool
This method tests for !=
.
impl StructuralPartialEq for LicensedComponents
Auto Trait Implementations
impl RefUnwindSafe for LicensedComponents
impl Send for LicensedComponents
impl Sync for LicensedComponents
impl Unpin for LicensedComponents
impl UnwindSafe for LicensedComponents
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more