pub trait Serialize {
// Required method
fn serialize(&self) -> Result<Intermediate, Error>;
}
Expand description
Serialize trait.
The trait can be implemented by objects the can serialized to the intermediate representation.
Required Methods§
Sourcefn serialize(&self) -> Result<Intermediate, Error>
fn serialize(&self) -> Result<Intermediate, Error>
Serialize the object.