pub struct SequenceFeature { /* private fields */ }Expand description
A sequence or genomic feature with optional range and deterministic attributes.
Implementations§
Source§impl SequenceFeature
impl SequenceFeature
Sourcepub const fn new(kind: FeatureKind, name: FeatureName) -> Self
pub const fn new(kind: FeatureKind, name: FeatureName) -> Self
Creates a sequence feature.
Sourcepub fn with_range(self, range: GenomicRange) -> Self
pub fn with_range(self, range: GenomicRange) -> Self
Sets the optional genomic range.
Sourcepub fn with_attributes(self, attributes: AnnotationSet) -> Self
pub fn with_attributes(self, attributes: AnnotationSet) -> Self
Sets deterministic feature attributes.
Sourcepub const fn kind(&self) -> &FeatureKind
pub const fn kind(&self) -> &FeatureKind
Returns the feature kind.
Sourcepub const fn name(&self) -> &FeatureName
pub const fn name(&self) -> &FeatureName
Returns the feature name.
Sourcepub const fn range(&self) -> Option<&GenomicRange>
pub const fn range(&self) -> Option<&GenomicRange>
Returns the optional genomic range.
Sourcepub const fn attributes(&self) -> &AnnotationSet
pub const fn attributes(&self) -> &AnnotationSet
Returns deterministic feature attributes.
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 ==.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