Module holochain_serialized_bytes::prelude
source · Re-exports§
pub use crate::SerializedBytes;
pub use crate::SerializedBytesError;
pub use crate::UnsafeBytes;
pub use crate::decode;
pub use crate::encode;
Macros§
- this is everything downstream consumers need from this crate unidiomatic way to derive default trait implementations of TryFrom in/out of SerializedBytes
Traits§
- A data structure that can be deserialized from any data format supported by Serde.
- A data structure that can be serialized into any data format supported by Serde.
- allow downstream consumers to forget to pull in basic try_from/try_into methods Simple and safe type conversions that may fail in a controlled way under some circumstances. It is the reciprocal of
TryInto
. - An attempted conversion that consumes
self
, which may or may not be expensive.