pub struct LocalHomologyTable {
pub nseq: usize,
/* private fields */
}Expand description
Table of pairwise local homology information.
Replaces the C LocalHom **localhomtable (njob x njob linked lists)
with a flat map keyed by sequence pair indices.
Fields§
§nseq: usizeNumber of sequences.
Implementations§
Source§impl LocalHomologyTable
impl LocalHomologyTable
pub fn new(nseq: usize) -> Self
Sourcepub fn get(&self, i: usize, j: usize) -> &[HomologyRegion]
pub fn get(&self, i: usize, j: usize) -> &[HomologyRegion]
Get homology regions between sequences i and j.
Sourcepub fn get_mut(&mut self, i: usize, j: usize) -> &mut Vec<HomologyRegion>
pub fn get_mut(&mut self, i: usize, j: usize) -> &mut Vec<HomologyRegion>
Get mutable homology regions between sequences i and j.
Sourcepub fn push(&mut self, i: usize, j: usize, region: HomologyRegion)
pub fn push(&mut self, i: usize, j: usize, region: HomologyRegion)
Add a homology region between sequences i and j.
Trait Implementations§
Source§impl Clone for LocalHomologyTable
impl Clone for LocalHomologyTable
Source§fn clone(&self) -> LocalHomologyTable
fn clone(&self) -> LocalHomologyTable
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 LocalHomologyTable
impl Debug for LocalHomologyTable
Source§impl Default for LocalHomologyTable
impl Default for LocalHomologyTable
Source§fn default() -> LocalHomologyTable
fn default() -> LocalHomologyTable
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LocalHomologyTable
impl RefUnwindSafe for LocalHomologyTable
impl Send for LocalHomologyTable
impl Sync for LocalHomologyTable
impl Unpin for LocalHomologyTable
impl UnsafeUnpin for LocalHomologyTable
impl UnwindSafe for LocalHomologyTable
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