pub fn decode_from_slice<'a, D: de::BorrowDecode<'a>, C: Config>(
    src: &'a [u8],
    config: C,
) -> Result<(D, usize), error::DecodeError> {
    let reader = de::read::SliceReader::new(src);
    let mut decoder = de::DecoderImpl::<_, C>::new(reader, config);
    let result = D::borrow_decode(&mut decoder)?;
    let bytes_read = src.len() - decoder.reader().slice.len();
    Ok((result, bytes_read))
}
/// Attempt to decode a given type `D` from the given slice.
///
/// See the [config] module for more information on configurations.
///
/// [config]: config/index.html
Attempt to decode a given type `D` from the given slice.
See the [config] module for more information on configurations.


Attempt to decode a given type ` D ` from the given slice . See the [ config ] module for more information on configurations .
pub fn decode_from_slice<'a, D: de::BorrowDecode<'a>, C: Config>(
    src: &'a [u8],
    config: C,
) -> Result<(D, usize), error::DecodeError> {
    let reader = de::read::SliceReader::new(src);
    let mut decoder = de::DecoderImpl::<_, C>::new(reader, config);
    let result = D::borrow_decode(&mut decoder)?;
    let bytes_read = src.len() - decoder.reader().slice.len();
    Ok((result, bytes_read))
}
pub fn decode_from_slice < ' a , D : de :: BorrowDecode < ' a > , C : Config > ( src : & ' a [ u8 ] , config : C , ) -> Result < ( D , usize ) , error :: DecodeError > { let reader = de :: read :: SliceReader :: new ( src ) ; let mut decoder = de :: DecoderImpl :: < _ , C > :: new ( reader , config ) ; let result = D :: borrow_decode ( & mut decoder ) ? ; let bytes_read = src . len ( ) - decoder . reader ( ) . slice . len ( ) ; Ok ( ( result , bytes_read ) ) }
Attempt to decode a given type `D` from the given slice.
Attempt to decode a given type ` D ` from the given slice .
src
&'a [u8]
config
C