pub fn encode<'a, T>(&self, codeword: &'a mut [T]) -> &'a mut [u8]
        where T: EncodeInto
    {
        assert_eq!(codeword.len() * T::bitlength(), self.n(), "codeword must be n bits long");
        EncodeInto::encode(self, codeword)
    }
/// Encode a codeword. This function assumes the first k bits of `codeword` have already
/// been set to your data, and will set the remaining n-k bits appropriately.
///
/// `codeword` must be exactly n bits long.
///
/// You can give `codeword` in `u8`, `u32`, or `u64`.
/// The larger types are faster and are interpreted as packed bytes in little endian.
///
/// 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. This function assumes the first k bits of `codeword` have already
been set to your data, and will set the remaining n-k bits appropriately.

`codeword` must be exactly 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 . This function assumes the first k bits of ` codeword ` have already been set to your data and will set the remaining n - k bits appropriately . ` codeword ` must be exactly 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 ` .
pub fn encode<'a, T>(&self, codeword: &'a mut [T]) -> &'a mut [u8]
        where T: EncodeInto
    {
        assert_eq!(codeword.len() * T::bitlength(), self.n(), "codeword must be n bits long");
        EncodeInto::encode(self, codeword)
    }
pub fn encode < ' a , T > ( & self , codeword : & ' a mut [ T ] ) -> & ' a mut [ u8 ] where T : EncodeInto { assert_eq ! ( codeword len ( ) T bitlength ( ) self n ( ) " " ) ; EncodeInto :: encode ( self , codeword ) }
Encode a codeword.
Encode a codeword .
&self
codeword
&'a mut [T]