Module serde_rosmsg::ser [] [src]

Serialize a Rust data structure into ROSMSG binary data.

Data types supported by ROSMSG are supported as well. This results in the lack of support for:

  • Enums of any type, including Option
  • char, so use one character Strings instead
  • Maps that can't be boiled down to <String, String>

Structs

Serializer

A structure for serializing Rust values into ROSMSG binary data.

Functions

to_vec

Serialize the given data structure T as a ROSMSG byte vector.

to_writer

Serialize the given data structure T as ROSMSG into the IO stream.