Struct tugger_licensing::LicensedComponents [−][src]
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]
&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]
fn clone(&self) -> LicensedComponents
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for LicensedComponents
[src]
impl Default for LicensedComponents
[src]
fn default() -> LicensedComponents
[src]
impl PartialEq<LicensedComponents> for LicensedComponents
[src]
fn eq(&self, other: &LicensedComponents) -> bool
[src]
fn ne(&self, other: &LicensedComponents) -> bool
[src]
impl StructuralPartialEq for LicensedComponents
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,