Struct fibertools_rs::basemods::BaseMod
source · pub struct BaseMod {
pub modified_base: u8,
pub strand: char,
pub modification_type: char,
/* private fields */
}Fields
modified_base: u8strand: charmodification_type: charImplementations
sourceimpl BaseMod
impl BaseMod
pub fn new(
record: &Record,
modified_base: u8,
strand: char,
modification_type: char,
modified_bases_forward: Vec<i64>,
modified_probabilities_forward: Vec<u8>
) -> Self
pub fn get_reference_positions(&self) -> Vec<i64> ⓘ
pub fn get_modified_bases(&self) -> Vec<i64> ⓘ
pub fn get_modified_bases_forward(&self) -> Vec<i64> ⓘ
pub fn get_modified_probabilities(&self) -> Vec<u8> ⓘ
pub fn get_modified_probabilities_forward(&self) -> Vec<u8> ⓘ
pub fn is_m6a(&self) -> bool
pub fn is_cpg(&self) -> bool
Trait Implementations
impl Eq for BaseMod
impl StructuralEq for BaseMod
impl StructuralPartialEq for BaseMod
Auto Trait Implementations
impl RefUnwindSafe for BaseMod
impl Send for BaseMod
impl Sync for BaseMod
impl Unpin for BaseMod
impl UnwindSafe for BaseMod
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> Pointable for T
impl<T> Pointable for T
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
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 morefn 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).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.fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.