pub struct SufrBuilder<T>{Show 13 fields
pub version: u8,
pub is_dna: bool,
pub allow_ambiguity: bool,
pub ignore_softmask: bool,
pub max_query_len: T,
pub text_len: T,
pub num_suffixes: T,
pub num_sequences: T,
pub sequence_starts: Vec<T>,
pub headers: Vec<String>,
pub text: Vec<u8>,
pub partitions: Vec<Partition<T>>,
pub sequence_delimiter: u8,
}Fields§
§version: u8§is_dna: bool§allow_ambiguity: bool§ignore_softmask: bool§max_query_len: T§text_len: T§num_suffixes: T§num_sequences: T§sequence_starts: Vec<T>§headers: Vec<String>§text: Vec<u8>§partitions: Vec<Partition<T>>§sequence_delimiter: u8Implementations§
Source§impl<T> SufrBuilder<T>
impl<T> SufrBuilder<T>
pub fn new(args: SufrBuilderArgs) -> Result<SufrBuilder<T>>
pub fn string_at(&self, pos: usize) -> String
pub fn find_lcp(&self, start1: T, start2: T, len: T) -> T
pub fn is_less(&self, s1: T, s2: T) -> bool
pub fn upper_bound(&self, target: T, sa: &[T]) -> usize
pub fn sort(&mut self, num_partitions: usize) -> Result<()>
pub fn merge_sort( &self, x: &mut [T], y: &mut [T], n: usize, lcp: &mut [T], lcp_w: &mut [T], )
pub fn write(&self, filename: &str) -> Result<usize>
pub fn vec_to_slice_u8(vec: &[T]) -> &[u8] ⓘ
pub fn slice_u8_to_vec(buffer: &[u8], len: usize) -> Vec<T>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for SufrBuilder<T>where
T: Freeze,
impl<T> RefUnwindSafe for SufrBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for SufrBuilder<T>
impl<T> Sync for SufrBuilder<T>
impl<T> Unpin for SufrBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for SufrBuilder<T>where
T: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more