Re-exports§
pub use enc::PlatformVersionEncode;pub use de::DefaultBorrowDecode;pub use de::DefaultDecode;pub use de::PlatformVersionedBorrowDecode;pub use de::PlatformVersionedDecode;
Modules§
Macros§
- impl_
platform_ versioned_ borrow_ decode - Helper macro to implement
PlatformVersionedBorrowDecodefor any type that implementsPlatformVersionedDecode.
Traits§
- Borrow
Decode - Trait that makes a type able to be decoded, akin to serde’s
Deserializetrait. - Decode
- Trait that makes a type able to be decoded, akin to serde’s
DeserializeOwnedtrait. - 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_withmethods.
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 givenConfig. See the config module for more information. - platform_
versioned_ borrow_ decode_ from_ slice - Attempt to decode a given type
Dfrom the given slice. Returns the decoded output and the amount of bytes read. - platform_
versioned_ decode_ from_ reader - Attempt to decode a given type
Dfrom the given Reader. - platform_
versioned_ decode_ from_ slice - Attempt to decode a given type
Dfrom the given slice. Returns the decoded output and the amount of bytes read.
Type Aliases§
- Bincode
Context - Alias for the decoding context used across this crate.