pub fn decode_borrowed_from_slice<'de, T, C>(slice: &'de [u8], config: C) -> Result<T, DecodeError>
where
    T: Deserialize<'de>,
    C: Config,
{
    let reader = crate::de::read::SliceReader::new(slice);
    let mut decoder = crate::de::DecoderImpl::new(reader, config);
    let serde_decoder = SerdeDecoder {
        de: &mut decoder,
        pd: PhantomData,
    };
    T::deserialize(serde_decoder)
}
/// Decode a borrowed type from the given slice. Some parts of the decoded type are expected to be referring to the given slice
Decode a borrowed type from the given slice. Some parts of the decoded type are expected to be referring to the given slice
Decode a borrowed type from the given slice . Some parts of the decoded type are expected to be referring to the given slice
pub fn decode_borrowed_from_slice<'de, T, C>(slice: &'de [u8], config: C) -> Result<T, DecodeError>
where
    T: Deserialize<'de>,
    C: Config,
{
    let reader = crate::de::read::SliceReader::new(slice);
    let mut decoder = crate::de::DecoderImpl::new(reader, config);
    let serde_decoder = SerdeDecoder {
        de: &mut decoder,
        pd: PhantomData,
    };
    T::deserialize(serde_decoder)
}
pub fn decode_borrowed_from_slice < ' de , T , C > ( slice : & ' de [ u8 ] , config : C ) -> Result < T , DecodeError > where T : Deserialize < ' de > , C : Config , { let reader = crate :: de :: read :: SliceReader :: new ( slice ) ; let mut decoder = crate :: de :: DecoderImpl :: new ( reader , config ) ; let serde_decoder = SerdeDecoder { de : & mut decoder , pd : PhantomData , } ; T :: deserialize ( serde_decoder ) }
Decode a borrowed type from the given slice.
Decode a borrowed type from the given slice .
slice
&'de [u8]
config
C