pub struct SliceReadFixed<'a, 'b> { /* private fields */ }
Expand description
A CBOR input source that reads from a slice of bytes using a fixed size scratch buffer.
SliceRead
and MutSliceRead
are usually
preferred over this, as they can handle indefinite length items.
Implementations§
Source§impl<'a, 'b> SliceReadFixed<'a, 'b>
impl<'a, 'b> SliceReadFixed<'a, 'b>
Sourcepub fn new(slice: &'a [u8], scratch: &'b mut [u8]) -> SliceReadFixed<'a, 'b>
pub fn new(slice: &'a [u8], scratch: &'b mut [u8]) -> SliceReadFixed<'a, 'b>
Creates a CBOR input source to read from a slice of bytes, backed by a scratch buffer.
Trait Implementations§
Source§impl<'a, 'b> Debug for SliceReadFixed<'a, 'b>
impl<'a, 'b> Debug for SliceReadFixed<'a, 'b>
impl<'a, 'b> Read<'a> for SliceReadFixed<'a, 'b>
Auto Trait Implementations§
impl<'a, 'b> Freeze for SliceReadFixed<'a, 'b>
impl<'a, 'b> RefUnwindSafe for SliceReadFixed<'a, 'b>
impl<'a, 'b> Send for SliceReadFixed<'a, 'b>
impl<'a, 'b> Sync for SliceReadFixed<'a, 'b>
impl<'a, 'b> Unpin for SliceReadFixed<'a, 'b>
impl<'a, 'b> !UnwindSafe for SliceReadFixed<'a, 'b>
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