Skip to main content

encode_base

Function encode_base 

Source
pub const fn encode_base(base: u8) -> Result<u8, EncodingError>
Expand description

Encode a single DNA nucleotide to 2 bits

Uses the SSHash custom encoding by default: A -> 00, C -> 01, G -> 11, T -> 10