pub struct Decoder<'b> { /* private fields */ }Implementations§
Source§impl<'b> Decoder<'b>
A non-allocating CBOR decoder
impl<'b> Decoder<'b>
A non-allocating CBOR decoder
Sourcepub fn array(&mut self) -> RpcResult<Option<u64>>
pub fn array(&mut self) -> RpcResult<Option<u64>>
Begin decoding an array. If the length is known,
it is returned as Some. For indefinite arrays, None is returned.
Sourcepub fn fixed_array(&mut self) -> RpcResult<u64>
pub fn fixed_array(&mut self) -> RpcResult<u64>
Begin decoding an array of known length
Trait Implementations§
Auto Trait Implementations§
impl<'b> Freeze for Decoder<'b>
impl<'b> RefUnwindSafe for Decoder<'b>
impl<'b> Send for Decoder<'b>
impl<'b> Sync for Decoder<'b>
impl<'b> Unpin for Decoder<'b>
impl<'b> UnwindSafe for Decoder<'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