Bincode v0.3.0 Bincode.Serializer protocol View Source
Protocol responsible for serializing Elixir terms into binary representation.
It is automatically implemented when you declare a struct with Bincode.Structs.declare_struct
but you can also manually implement it for any Elixir term.
Link to this section Summary
Functions
Serialize the given term to a binary representation compatible with Rust's Bincode.
Returns {:ok, serialized_term} or {:error, error_message}.
Link to this section Types
Specs
t() :: term()
Link to this section Functions
Specs
serialize(any(), Bincode.options()) :: {:ok, binary()} | {:error, binary()}
Serialize the given term to a binary representation compatible with Rust's Bincode.
Returns {:ok, serialized_term} or {:error, error_message}.