Re-exports§
pub use de::Deserialize;
pub use de::DeserializeOwned;
pub use de::Deserializer;
pub use ser::Serialize;
pub use ser::Serializer;
Modules§
Structs§
- This is a
Writer
that can be used to serialize a value into a pre-allocated byte buffer.
Traits§
- A
Writer
represents a consumer of the bytes produced by serializing a message. In cases where you can create a slice to put the bytes in,CursorWriter
can be used. CustomWriter
s are useful for more niche uses, such as sending the serialized bytes over a serial port.
Functions§
- Deserialize a
T
from some bytes and, optionally, some handles. If the wire is not able to transport handles, it is fine to produce&[]
(as long asT
does not contain any handles, that is). - It can sometimes be useful to know the size of a value in its serialized form (e.g. to reserve space for it in a ring buffer). This calculates the number of bytes taken to serialize some
value
ofT
into Ptah’s wire format. Note that this size is for the specificvalue
, and may differ between values ofT
.