Crate platform_serialization

Crate platform_serialization 

Source

Re-exports§

pub use enc::PlatformVersionEncode;
pub use de::DefaultBorrowDecode;
pub use de::DefaultDecode;
pub use de::PlatformVersionedBorrowDecode;
pub use de::PlatformVersionedDecode;

Modules§

de
Decoder-based structs and traits.
enc
error
Errors that can be encounting by Encoding and Decoding.

Macros§

impl_platform_versioned_borrow_decode
Helper macro to implement PlatformVersionedBorrowDecode for any type that implements PlatformVersionedDecode.

Traits§

BorrowDecode
Trait that makes a type able to be decoded, akin to serde’s Deserialize trait.
Decode
Trait that makes a type able to be decoded, akin to serde’s DeserializeOwned trait.
Encode
Any source that can be encoded. This trait should be implemented for all types that you want to be able to use with any of the encode_with methods.

Functions§

encode_into_writer
Encode the given value into a custom Writer.
platform_encode_into_slice
Encode the given value into the given slice. Returns the amount of bytes that have been written.
platform_encode_to_vec
PlatformVersionEncode the given value into a Vec<u8> with the given Config. See the config module for more information.
platform_versioned_borrow_decode_from_slice
Attempt to decode a given type D from the given slice. Returns the decoded output and the amount of bytes read.
platform_versioned_decode_from_reader
Attempt to decode a given type D from the given Reader.
platform_versioned_decode_from_slice
Attempt to decode a given type D from the given slice. Returns the decoded output and the amount of bytes read.

Type Aliases§

BincodeContext
Alias for the decoding context used across this crate.

Derive Macros§

BorrowDecode
Decode