Skip to main content

SequenceFeature

Struct SequenceFeature 

Source
#[non_exhaustive]
pub struct SequenceFeature { pub identity: Resource, pub identified: IdentifiedData, pub feature: FeatureData, pub locations: 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§feature: FeatureData§locations: Vec<Resource>

Implementations§

Source§

impl SequenceFeature

Source

pub fn new( parent: &Resource, display_id: impl TryInto<DisplayId, Error = BuildError>, locations: impl IntoIterator<Item = Resource>, ) -> Result<Self, BuildError>

Source

pub fn builder( parent: &Resource, display_id: impl TryInto<DisplayId, Error = BuildError>, ) -> Result<SequenceFeatureBuilder, BuildError>

Source§

impl SequenceFeature

Source

pub fn parent_component<'a>(&self, doc: &'a Document) -> Option<&'a Component>

Returns the Component that owns this feature via sbol:hasFeature, or None if no enclosing component is in the document. SBOL features must belong to exactly one component, so a Some result is unambiguous.

Source§

impl SequenceFeature

Source

pub fn locations<'doc>( &'doc self, doc: &'doc Document, ) -> impl Iterator<Item = LocationRef<'doc>> + 'doc

Iterate over this SequenceFeature’s child Locations.

Trait Implementations§

Source§

impl Clone for SequenceFeature

Source§

fn clone(&self) -> SequenceFeature

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 SequenceFeature

Source§

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

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

impl PartialEq for SequenceFeature

Source§

fn eq(&self, other: &SequenceFeature) -> 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 SequenceFeature

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 ToRdf for SequenceFeature

Source§

impl TryFromObject for SequenceFeature

Source§

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

Source§

impl Eq for SequenceFeature

Source§

impl StructuralPartialEq for SequenceFeature

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