Struct serde_cbor::de::MutSliceRead
source · pub struct MutSliceRead<'a> { /* private fields */ }
Expand description
A CBOR input source that reads from a slice of bytes, and can move data around internally to reassemble indefinite strings without the need of an allocated scratch buffer.
Implementations§
source§impl<'a> MutSliceRead<'a>
impl<'a> MutSliceRead<'a>
sourcepub fn new(slice: &'a mut [u8]) -> MutSliceRead<'a>
pub fn new(slice: &'a mut [u8]) -> MutSliceRead<'a>
Creates a CBOR input source to read from a slice of bytes.