#[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
impl SequenceFeature
pub fn new( parent: &Resource, display_id: impl TryInto<DisplayId, Error = BuildError>, locations: impl IntoIterator<Item = Resource>, ) -> Result<Self, BuildError>
pub fn builder( parent: &Resource, display_id: impl TryInto<DisplayId, Error = BuildError>, ) -> Result<SequenceFeatureBuilder, BuildError>
Source§impl SequenceFeature
impl SequenceFeature
Sourcepub fn parent_component<'a>(&self, doc: &'a Document) -> Option<&'a Component>
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
impl SequenceFeature
Sourcepub fn locations<'doc>(
&'doc self,
doc: &'doc Document,
) -> impl Iterator<Item = LocationRef<'doc>> + 'doc
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
impl Clone for SequenceFeature
Source§fn clone(&self) -> SequenceFeature
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SequenceFeature
impl Debug for SequenceFeature
Source§impl PartialEq for SequenceFeature
impl PartialEq for SequenceFeature
Source§fn eq(&self, other: &SequenceFeature) -> bool
fn eq(&self, other: &SequenceFeature) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl SbolIdentified for SequenceFeature
impl SbolIdentified for SequenceFeature
Source§fn identified_data(&self) -> &IdentifiedData
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>
fn display_id(&self) -> Option<&str>
The object’s
sbol:displayId, if present.Source§fn description(&self) -> Option<&str>
fn description(&self) -> Option<&str>
The object’s
sbol:description, if present.Source§fn derived_from(&self) -> &[Resource]
fn derived_from(&self) -> &[Resource]
Resources this object lists as
prov:wasDerivedFrom.Source§fn generated_by(&self) -> &[Resource]
fn generated_by(&self) -> &[Resource]
Resources this object lists as
prov:wasGeneratedBy.Source§fn extensions(&self) -> &[ExtensionTriple]
fn extensions(&self) -> &[ExtensionTriple]
Non-SBOL annotation triples preserved on this object’s identity.
Source§impl ToRdf for SequenceFeature
impl ToRdf for SequenceFeature
fn to_rdf_triples(&self) -> Result<Vec<Triple>, BuildError>
Source§impl TryFromObject for SequenceFeature
impl TryFromObject for SequenceFeature
fn try_from_object(object: &Object) -> Option<Self>
impl Eq for SequenceFeature
impl StructuralPartialEq for SequenceFeature
Auto Trait Implementations§
impl Freeze for SequenceFeature
impl RefUnwindSafe for SequenceFeature
impl Send for SequenceFeature
impl Sync for SequenceFeature
impl Unpin for SequenceFeature
impl UnsafeUnpin for SequenceFeature
impl UnwindSafe for SequenceFeature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more