Skip to main content

CombinatorialDerivation

Struct CombinatorialDerivation 

Source
#[non_exhaustive]
pub struct CombinatorialDerivation { pub identity: Resource, pub identified: IdentifiedData, pub top_level: TopLevelData, pub template: Option<Resource>, pub strategy: Option<Iri>, pub variable_features: Vec<Resource>, }

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§identity: Resource§identified: IdentifiedData§top_level: TopLevelData§template: Option<Resource>§strategy: Option<Iri>§variable_features: Vec<Resource>

Implementations§

Source§

impl CombinatorialDerivation

Source

pub fn new( namespace: impl TryInto<Namespace, Error = BuildError>, display_id: impl TryInto<DisplayId, Error = BuildError>, template: Resource, ) -> Result<Self, BuildError>

Source

pub fn builder( namespace: impl TryInto<Namespace, Error = BuildError>, display_id: impl TryInto<DisplayId, Error = BuildError>, ) -> Result<CombinatorialDerivationBuilder, BuildError>

Source§

impl CombinatorialDerivation

Source

pub fn variants<'a, G>( &self, graph: &'a G, ) -> Result<VariantSet<'a>, ReferenceError>
where G: ObjectGraph + ?Sized,

Expands this derivation’s VariableFeatures into a VariantSet of concrete Components.

Variants from every VariableFeature are merged into one VariantSet, grouped by source (VariantSet::from_variants, VariantSet::from_collections, VariantSet::from_derivations). Components are de-duplicated by identity within each source.

§Errors

Returns ReferenceError::NotFound for any IRI on a VariableFeature’s variant, variantCollection, or variantDerivation that is absent from graph, and ReferenceError::WrongType when a referenced IRI resolves to the wrong SBOL class.

Source

pub fn template_component<'a, G>( &self, graph: &'a G, ) -> Result<&'a Component, ReferenceError>
where G: ObjectGraph + ?Sized,

Resolves CombinatorialDerivation::template to the referenced Component.

§Errors

Returns ReferenceError::Missing when template is unset, ReferenceError::NotFound when the IRI is not in graph, or ReferenceError::WrongType when the IRI resolves to a non-Component.

Trait Implementations§

Source§

impl Clone for CombinatorialDerivation

Source§

fn clone(&self) -> CombinatorialDerivation

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CombinatorialDerivation

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for CombinatorialDerivation

Source§

fn eq(&self, other: &CombinatorialDerivation) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl SbolIdentified for CombinatorialDerivation

Source§

fn identified_data(&self) -> &IdentifiedData

Returns the underlying IdentifiedData this accessor reads from. Implementors only need to forward to their identified field.
Source§

fn display_id(&self) -> Option<&str>

The object’s sbol:displayId, if present.
Source§

fn name(&self) -> Option<&str>

The object’s sbol:name, if present.
Source§

fn description(&self) -> Option<&str>

The object’s sbol:description, if present.
Source§

fn derived_from(&self) -> &[Resource]

Resources this object lists as prov:wasDerivedFrom.
Source§

fn generated_by(&self) -> &[Resource]

Resources this object lists as prov:wasGeneratedBy.
Source§

fn measures(&self) -> &[Resource]

OM Measure resources attached via sbol:hasMeasure.
Source§

fn extensions(&self) -> &[ExtensionTriple]

Non-SBOL annotation triples preserved on this object’s identity.
Source§

impl SbolTopLevel for CombinatorialDerivation

Source§

fn top_level_data(&self) -> &TopLevelData

Returns the underlying TopLevelData this accessor reads from. Implementors only need to forward to their top_level field.
Source§

fn namespace(&self) -> Option<&Iri>

The object’s sbol:hasNamespace, if present. TopLevel objects in well-formed SBOL documents always carry a namespace, but the underlying graph may omit it — callers that require a namespace should validate the document first.
Source§

fn attachments(&self) -> &[Resource]

sbol:Attachment resources attached via sbol:hasAttachment.
Source§

impl ToRdf for CombinatorialDerivation

Source§

impl TryFromObject for CombinatorialDerivation

Source§

fn try_from_object(object: &Object) -> Option<Self>

Source§

impl Eq for CombinatorialDerivation

Source§

impl StructuralPartialEq for CombinatorialDerivation

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V