fn from_bytes(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, bytes[i])
        }

        k0
    }
/// Create a Kmer from the first K bytes of `bytes`, which must be encoded as the integers 0-4.
Create a Kmer from the first K bytes of `bytes`, which must be encoded as the integers 0-4.
Create a Kmer from the first K bytes of ` bytes ` which must be encoded as the integers 0 - 4 .
fn from_bytes(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, bytes[i])
        }
        k0
    }
fn from_bytes ( bytes : & [ u8 ] ) -> Self { if bytes . len ( ) < Self :: k ( ) { panic ! ( " " ) } let mut k0 = Self :: empty ( ) ; for i in 0 .. Self :: k ( ) { k0 . set_mut ( i , bytes [ i ] ) } k0 }
Create a Kmer from the first K bytes of `bytes`, which must be encoded as the integers 0-4.
Create a Kmer from the first K bytes of ` bytes ` which must be encoded as the integers 0 - 4 .
bytes
&[u8]
bytes
&[u8]