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.
Trait Implementations§
Source§impl<'a> Debug for MutSliceRead<'a>
impl<'a> Debug for MutSliceRead<'a>
impl<'a> Read<'a> for MutSliceRead<'a>
Auto Trait Implementations§
impl<'a> Freeze for MutSliceRead<'a>
impl<'a> RefUnwindSafe for MutSliceRead<'a>
impl<'a> Send for MutSliceRead<'a>
impl<'a> Sync for MutSliceRead<'a>
impl<'a> Unpin for MutSliceRead<'a>
impl<'a> !UnwindSafe for MutSliceRead<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more