pub struct EncoderV1 { /* private fields */ }

Implementations

Trait Implementations

Consume current encoder and return a binary with all data encoded so far.

Reset the state of currently encoded DeleteSet.

Write a clock value of currently encoded DeleteSet client.

Write a number of client entries used by currently encoded DeleteSet.

Write unique identifier of a currently encoded [Block]’s left origin.

Write unique identifier of a currently encoded [Block]’s right origin.

Write currently encoded client identifier.

Write currently encoded [Block]’s info flags. These contain information about which fields have been provided and which should be skipped during decoding process as well as a type of block currently encoded. Read more

Write info flag about currently encoded [Block]’s parent. Is is another block or root type.

Writes type ref data of currently encoded [Block]’s parent.

Write length parameter.

Encode JSON-like data type. This is a complex structure which is an extension to JavaScript Object Notation with some extra cases. Read more

Encode JSON-like data type as nested JSON string. This is a complex structure which is an extension to JavaScript Object Notation with some extra cases. Read more

Write a string key.

Write an unsigned integer (16bit)

Write an unsigned integer (32bit)

Write an unsigned integer (32bit) in big endian order (most significant byte first)

Write a variable length integer or unsigned integer. Read more

Write variable length buffer (binary content).

Write variable-length utf8 string

Write floating point number in 4 bytes

Write floating point number in 8 bytes

Write BigInt in 8 bytes in big endian order.

Write BigUInt in 8 bytes in big endian order.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.