sigalign 0.4.0-alpha

A Similarity-Guided Alignment Algorithm
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::{
    InMemoryStorage,
    LabelStorage,
};

// Label Storage
impl LabelStorage for InMemoryStorage {
    fn label_of_target_unchecked(&self, target_index: u32) -> String {
        unsafe {
            String::from_utf8_unchecked(
                self.concatenated_label.as_bytes()[
                    self.label_index[target_index as usize]
                    ..self.label_index[target_index as usize +1]
                ].to_vec()
            )
        }
    }
}