pub struct FeatureAttributeBuilder {
pub attributes: BTreeMap<String, HashSet<FeatureAttributes>>,
/* private fields */
}Expand description
builder for the feature information on a per coding sequence (CDS) basis
Fields§
§attributes: BTreeMap<String, HashSet<FeatureAttributes>>Implementations§
Source§impl FeatureAttributeBuilder
impl FeatureAttributeBuilder
pub fn get_start(&self, key: &str) -> Option<&RangeValue>
pub fn get_stop(&self, key: &str) -> Option<&RangeValue>
pub fn get_gene(&self, key: &str) -> Option<&String>
pub fn get_product(&self, key: &str) -> Option<&String>
pub fn get_codon_start(&self, key: &str) -> Option<&u8>
pub fn get_strand(&self, key: &str) -> Option<&i8>
Source§impl FeatureAttributeBuilder
impl FeatureAttributeBuilder
pub fn new() -> Self
pub fn set_counter(&mut self, counter: String) -> &mut Self
pub fn insert_to(&mut self, value: FeatureAttributes)
pub fn set_start(&mut self, value: RangeValue) -> &mut Self
pub fn set_stop(&mut self, value: RangeValue) -> &mut Self
pub fn set_gene(&mut self, value: String) -> &mut Self
pub fn set_product(&mut self, value: String) -> &mut Self
pub fn set_codon_start(&mut self, value: u8) -> &mut Self
pub fn set_strand(&mut self, value: i8) -> &mut Self
pub fn build(self) -> BTreeMap<String, HashSet<FeatureAttributes>>
pub fn iter_sorted(&self) -> Iter<'_, String, HashSet<FeatureAttributes>> ⓘ
pub fn default() -> Self
Trait Implementations§
Source§impl Clone for FeatureAttributeBuilder
impl Clone for FeatureAttributeBuilder
Source§impl Debug for FeatureAttributeBuilder
impl Debug for FeatureAttributeBuilder
Source§impl Default for FeatureAttributeBuilder
impl Default for FeatureAttributeBuilder
Auto Trait Implementations§
impl Freeze for FeatureAttributeBuilder
impl RefUnwindSafe for FeatureAttributeBuilder
impl Send for FeatureAttributeBuilder
impl Sync for FeatureAttributeBuilder
impl Unpin for FeatureAttributeBuilder
impl UnsafeUnpin for FeatureAttributeBuilder
impl UnwindSafe for FeatureAttributeBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.