pub struct Feature { /* private fields */ }Expand description
An annotated biological feature.
Implementations§
Source§impl Feature
impl Feature
Sourcepub fn new(
id: FeatureId,
kind: impl Into<String>,
label: impl Into<String>,
location: Location,
qualifiers: Vec<Qualifier>,
display: DisplayHints,
) -> Self
pub fn new( id: FeatureId, kind: impl Into<String>, label: impl Into<String>, location: Location, qualifiers: Vec<Qualifier>, display: DisplayHints, ) -> Self
Construct a feature.
pub const fn id(&self) -> &FeatureId
pub fn kind(&self) -> &str
pub fn label(&self) -> &str
pub const fn location(&self) -> &Location
pub fn qualifiers(&self) -> &[Qualifier]
pub const fn display(&self) -> &DisplayHints
Trait Implementations§
impl Eq for Feature
impl StructuralPartialEq for Feature
Auto Trait Implementations§
impl Freeze for Feature
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnsafeUnpin for Feature
impl UnwindSafe for Feature
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