nthash 0.5.1

ntHash is a rolling hash function for hashing all possible k-mers in a DNA sequence.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use super::MAXIMUM_K_SIZE;

#[derive(thiserror::Error, Debug)]
pub enum Error {
    #[error("K size {ksize} is out of range for the given sequence size {seq_size}")]
    KSizeOutOfRange { ksize: usize, seq_size: usize },
    #[error("K size {0} cannot exceed the size of a u32 {MAXIMUM_K_SIZE}")]
    KSizeTooBig(usize),
}

pub type Result<T> = std::result::Result<T, Error>;