pub fn copy_encode<'a, T>(&self, data: &[u8], codeword: &'a mut [T]) -> &'a mut [u8]
        where T: EncodeInto
    {
        assert_eq!(data.len() * 8, self.k(), "data must be k bits long");
        assert_eq!(codeword.len() * T::bitlength(), self.n(), "codeword must be n bits long");
        EncodeInto::copy_encode(self, data, codeword)
    }
/// Encode a codeword, first copying in the data.
///
/// This is the same as `encode` except you can pass the data which must be k bits long in as
/// `&[u8]` and it will be copied into the first part of `codeword`, which must be n bits long.
///
/// Returns a view of `codeword` in &mut [u8] which may be convenient if you
/// passed in a larger type but want to use the output as bytes. You can just
/// not use the return value if you wish to keep your original view on `codeword`.
Encode a codeword, first copying in the data.

Returns a view of `codeword` in &mut [u8] which may be convenient if you
passed in a larger type but want to use the output as bytes. You can just
not use the return value if you wish to keep your original view on `codeword`.
Encode a codeword first copying in the data . Returns a view of ` codeword ` in &mut [ u8 ] which may be convenient if you passed in a larger type but want to use the output as bytes . You can just not use the return value if you wish to keep your original view on ` codeword ` .
pub fn copy_encode<'a, T>(&self, data: &[u8], codeword: &'a mut [T]) -> &'a mut [u8]
        where T: EncodeInto
    {
        assert_eq!(data.len() * 8, self.k(), "data must be k bits long");
        assert_eq!(codeword.len() * T::bitlength(), self.n(), "codeword must be n bits long");
        EncodeInto::copy_encode(self, data, codeword)
    }
pub fn copy_encode < ' a , T > ( & self , data : & [ u8 ] , codeword : & ' a mut [ T ] ) -> & ' a mut [ u8 ] where T : EncodeInto { assert_eq ! ( data len ( ) 8 self k ( ) " " ) ; assert_eq ! ( codeword len ( ) T bitlength ( ) self n ( ) " " ) ; EncodeInto :: copy_encode ( self , data , codeword ) }
Encode a codeword, first copying in the data.
Encode a codeword first copying in the data .
&self
data
&[u8]
codeword
&'a mut [T]