View Source Pythonx.Codec.Encoder protocol (Pythonx v0.2.5)
Summary
Functions
Encode a value to a Python object, return in Pythonx.Beam.PyObject.t()
Encode a value to a Python object, return in Pythonx.C.PyObject.t()
Types
@type t() :: term()
All the types that implement this protocol.
Functions
@spec encode(value :: any()) :: Pythonx.Beam.PyObject.t() | PyErr.t()
Encode a value to a Python object, return in Pythonx.Beam.PyObject.t()
@spec encode_c(value :: any()) :: Pythonx.C.PyObject.t() | PyErr.t()
Encode a value to a Python object, return in Pythonx.C.PyObject.t()