pub trait AsTuple: Serialize {
// Provided method
fn serialize_as_tuple(&self) -> Result<TupleBuffer, Error> { ... }
}
Expand description
Must be implemented for types, which will be used with box access methods as data
Provided Methods§
Sourcefn serialize_as_tuple(&self) -> Result<TupleBuffer, Error>
fn serialize_as_tuple(&self) -> Result<TupleBuffer, Error>
Describes how object can be converted to Tuple.
Has default implementation, but can be overloaded for special cases
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.