Struct hirschberg::Config
source · pub struct Config {
pub match_score: i32,
pub mismatch_score: i32,
pub gap_score: i32,
}
Expand description
Configuration for the Hirschberg algorithm
Fields§
§match_score: i32
§mismatch_score: i32
§gap_score: i32
Implementations§
source§impl Config
impl Config
sourcepub fn match_score(self, score: i32) -> Self
pub fn match_score(self, score: i32) -> Self
Set the match score, which weights matching elements in the aligned sequences.
sourcepub fn mismatch_score(self, score: i32) -> Self
pub fn mismatch_score(self, score: i32) -> Self
Set the mismatch score, which weights differing elements in the aligned sequences.
sourcepub fn gap_score(self, score: i32) -> Self
pub fn gap_score(self, score: i32) -> Self
Set the gap score, which weights gaps in the alignment of sequences.
pub fn compute<'a, T: PartialEq<U>, U: PartialEq<T>>( self, a: &'a [T], b: &'a [U] ) -> Output<'a, T, U>
Trait Implementations§
impl Copy for Config
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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