pub struct PortableBinary;
Expand description
Serializer parameters for portable binary format, which does not need double-ended buffer
However, it still requires implementation of TailReadBytes
,
TailWriteBytes
traits
for reader and writer, which should behave same as ReadBytes
,
WriteBytes
.
Trait Implementations§
Source§impl Clone for PortableBinary
impl Clone for PortableBinary
Source§fn clone(&self) -> PortableBinary
fn clone(&self) -> PortableBinary
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for PortableBinary
impl Default for PortableBinary
Source§fn default() -> PortableBinary
fn default() -> PortableBinary
Returns the “default value” for a type. Read more
Source§impl EncodingParams for PortableBinary
impl EncodingParams for PortableBinary
Source§const ENDIANNESS: Endianness = Endianness::Big
const ENDIANNESS: Endianness = Endianness::Big
Endianness for encoding integer and float values; for encodings which preserve
lexicographic ordering, should be
Endianness::Big
Source§impl<W> FormatVersion<PortableBinary> for Deserializer<W, PortableBinary>
impl<W> FormatVersion<PortableBinary> for Deserializer<W, PortableBinary>
Source§impl<W> FormatVersion<PortableBinary> for Serializer<W, PortableBinary>
impl<W> FormatVersion<PortableBinary> for Serializer<W, PortableBinary>
Source§impl SerializerParams for PortableBinary
impl SerializerParams for PortableBinary
Source§type SeqLenEncoder = VarIntLenEncoder
type SeqLenEncoder = VarIntLenEncoder
Encoder for sequence lengths
Source§type DiscriminantEncoder = VarIntDiscrEncoder
type DiscriminantEncoder = VarIntDiscrEncoder
Encoder for discriminant values
impl Copy for PortableBinary
Auto Trait Implementations§
impl Freeze for PortableBinary
impl RefUnwindSafe for PortableBinary
impl Send for PortableBinary
impl Sync for PortableBinary
impl Unpin for PortableBinary
impl UnwindSafe for PortableBinary
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