fn from_ascii(bytes: &[u8]) -> Self {
        if bytes.len() < Self::k() {
            panic!("bytes not long enough to form kmer")
        }

        let mut k0 = Self::empty();

        for i in 0..Self::k() {
            k0.set_mut(i, base_to_bits(bytes[i]))
        }

        k0
    }
/// Create a Kmer from the first K bytes of `bytes`, which must be encoded as ASCII letters A,C,G, or T.
Create a Kmer from the first K bytes of `bytes`, which must be encoded as ASCII letters A,C,G, or T.
Create a Kmer from the first K bytes of ` bytes ` which must be encoded as ASCII letters A C G or T .
fn from_ascii(bytes: &[u8]) -> Self {
        if bytes.len() < Self::k() {
            panic!("bytes not long enough to form kmer")
        }
        let mut k0 = Self::empty();
        for i in 0..Self::k() {
            k0.set_mut(i, base_to_bits(bytes[i]))
        }
        k0
    }
fn from_ascii ( bytes : & [ u8 ] ) -> Self { if bytes . len ( ) < Self :: k ( ) { panic ! ( " " ) } let mut k0 = Self :: empty ( ) ; for i in 0 .. Self :: k ( ) { k0 . set_mut ( i , base_to_bits ( bytes [ i ] ) ) } k0 }
Create a Kmer from the first K bytes of `bytes`, which must be encoded as ASCII letters A,C,G, or T.
Create a Kmer from the first K bytes of ` bytes ` which must be encoded as ASCII letters A C G or T .
bytes
&[u8]
bytes
&[u8]