pub struct NativeBinary;Expand description
Serializer parameters for platform-specific binary format, which does not need a double-ended buffer
This is probably the fastest option, but serialized data will not be portable.
It still requires implementation of TailReadBytes,
TailWriteBytes traits for reader
and writer, which should behave the same as ReadBytes,
WriteBytes.
Trait Implementations§
Source§impl Clone for NativeBinary
impl Clone for NativeBinary
Source§fn clone(&self) -> NativeBinary
fn clone(&self) -> NativeBinary
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 NativeBinary
impl Default for NativeBinary
Source§fn default() -> NativeBinary
fn default() -> NativeBinary
Returns the “default value” for a type. Read more
Source§impl EncodingParams for NativeBinary
impl EncodingParams for NativeBinary
Source§const ENDIANNESS: Endianness = Endianness::Native
const ENDIANNESS: Endianness = Endianness::Native
Endianness for encoding integer and float values; for encodings which preserve
lexicographic ordering, should be
Endianness::BigSource§impl<W> FormatVersion<NativeBinary> for Deserializer<W, NativeBinary>
impl<W> FormatVersion<NativeBinary> for Deserializer<W, NativeBinary>
Source§impl<W> FormatVersion<NativeBinary> for Serializer<W, NativeBinary>
impl<W> FormatVersion<NativeBinary> for Serializer<W, NativeBinary>
Source§impl SerializerParams for NativeBinary
impl SerializerParams for NativeBinary
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 NativeBinary
Auto Trait Implementations§
impl Freeze for NativeBinary
impl RefUnwindSafe for NativeBinary
impl Send for NativeBinary
impl Sync for NativeBinary
impl Unpin for NativeBinary
impl UnwindSafe for NativeBinary
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