pub struct DecoderV1<'a> { /* private fields */ }
Expand description
Version 1 of lib0 decoder.
Implementations§
Trait Implementations§
source§impl<'a> Decoder for DecoderV1<'a>
impl<'a> Decoder for DecoderV1<'a>
source§fn reset_ds_cur_val(&mut self)
fn reset_ds_cur_val(&mut self)
Reset the value of current delete set state.
source§fn read_ds_len(&mut self) -> Result<u32, Error>
fn read_ds_len(&mut self) -> Result<u32, Error>
Read the number of clients stored in encoded DeleteSet.
source§fn read_left_id(&mut self) -> Result<ID, Error>
fn read_left_id(&mut self) -> Result<ID, Error>
Read left origin of a currently decoded [Block].
source§fn read_right_id(&mut self) -> Result<ID, Error>
fn read_right_id(&mut self) -> Result<ID, Error>
Read right origin of a currently decoded [Block].
source§fn read_client(&mut self) -> Result<ClientID, Error>
fn read_client(&mut self) -> Result<ClientID, Error>
Read currently decoded client identifier.
source§fn read_info(&mut self) -> Result<u8, Error>
fn read_info(&mut self) -> Result<u8, Error>
Read info bit flags of a currently decoded [Block].
source§fn read_parent_info(&mut self) -> Result<bool, Error>
fn read_parent_info(&mut self) -> Result<bool, Error>
Read bit flags determining type of parent of a currently decoded [Block].
source§fn read_type_ref(&mut self) -> Result<u8, Error>
fn read_type_ref(&mut self) -> Result<u8, Error>
Read type ref info of a currently decoded [Block] parent.
source§fn read_any(&mut self) -> Result<Any, Error>
fn read_any(&mut self) -> Result<Any, Error>
Decode a JSON-like data type. It’s a complex type which is an extension of native JavaScript
Object Notation.
source§impl<'a> Read for DecoderV1<'a>
impl<'a> Read for DecoderV1<'a>
fn read_exact(&mut self, len: usize) -> Result<&[u8], Error>
source§fn read_u32_be(&mut self) -> Result<u32, Error>
fn read_u32_be(&mut self) -> Result<u32, Error>
Read 4 bytes as unsigned integer in big endian order.
(most significant byte first)
source§fn read_var<T: VarInt>(&mut self) -> Result<T, Error>
fn read_var<T: VarInt>(&mut self) -> Result<T, Error>
Read unsigned integer with variable length. Read more
source§fn read_var_signed<T: SignedVarInt>(&mut self) -> Result<Signed<T>, Error>
fn read_var_signed<T: SignedVarInt>(&mut self) -> Result<Signed<T>, Error>
Read unsigned integer with variable length. Read more
Auto Trait Implementations§
impl<'a> Freeze for DecoderV1<'a>
impl<'a> RefUnwindSafe for DecoderV1<'a>
impl<'a> Send for DecoderV1<'a>
impl<'a> Sync for DecoderV1<'a>
impl<'a> Unpin for DecoderV1<'a>
impl<'a> UnwindSafe for DecoderV1<'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