pub trait SigsTrait {
// Required methods
fn size(&self) -> usize;
fn to_vec(&self) -> Vec<u64>;
fn ksize(&self) -> usize;
fn check_compatible(&self, other: &Self) -> Result<(), Error>;
fn seed(&self) -> u64;
fn hash_function(&self) -> HashFunctions;
fn add_hash(&mut self, hash: u64);
// Provided methods
fn add_sequence(&mut self, seq: &[u8], force: bool) -> Result<(), Error> { ... }
fn add_protein(&mut self, seq: &[u8]) -> Result<(), Error> { ... }
}
Required Methods§
fn size(&self) -> usize
fn to_vec(&self) -> Vec<u64>
fn ksize(&self) -> usize
fn check_compatible(&self, other: &Self) -> Result<(), Error>
fn seed(&self) -> u64
fn hash_function(&self) -> HashFunctions
fn add_hash(&mut self, hash: u64)
Provided Methods§
fn add_sequence(&mut self, seq: &[u8], force: bool) -> Result<(), Error>
fn add_protein(&mut self, seq: &[u8]) -> Result<(), Error>
Object Safety§
This trait is not object safe.