Struct fibertools_rs::extract::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: Vec<u8>
) -> Self
pub fn get_reference_positions(&self) -> Vec<i64>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
pub fn get_modified_bases(&self) -> Vec<i64>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
pub fn get_modified_bases_forward(&self) -> Vec<i64>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
pub fn get_modified_probabilities(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
pub fn is_m6a(&self) -> bool
pub fn is_cpg(&self) -> bool
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
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.