pub fn encode_into_slice<E: enc::Encode, C: Config>(
    val: E,
    dst: &mut [u8],
    config: C,
) -> Result<usize, error::EncodeError> {
    let writer = enc::write::SliceWriter::new(dst);
    let mut encoder = enc::EncoderImpl::<_, C>::new(writer, config);
    val.encode(&mut encoder)?;
    Ok(encoder.into_writer().bytes_written())
}
/// Encode the given value into the given slice. Returns the amount of bytes that have been written.
///
/// See the [config] module for more information on configurations.
///
/// [config]: config/index.html
Encode the given value into the given slice. Returns the amount of bytes that have been written.
See the [config] module for more information on configurations.


Encode the given value into the given slice . Returns the amount of bytes that have been written . See the [ config ] module for more information on configurations .
pub fn encode_into_slice<E: enc::Encode, C: Config>(
    val: E,
    dst: &mut [u8],
    config: C,
) -> Result<usize, error::EncodeError> {
    let writer = enc::write::SliceWriter::new(dst);
    let mut encoder = enc::EncoderImpl::<_, C>::new(writer, config);
    val.encode(&mut encoder)?;
    Ok(encoder.into_writer().bytes_written())
}
pub fn encode_into_slice < E : enc :: Encode , C : Config > ( val : E , dst : & mut [ u8 ] , config : C , ) -> Result < usize , error :: EncodeError > { let writer = enc :: write :: SliceWriter :: new ( dst ) ; let mut encoder = enc :: EncoderImpl :: < _ , C > :: new ( writer , config ) ; val . encode ( & mut encoder ) ? ; Ok ( encoder . into_writer ( ) . bytes_written ( ) ) }
Encode the given value into the given slice.
Encode the given value into the given slice .
val
E
dst
&mut [u8]
config
C