pub trait Encode: TextEncode + BinaryEncode {
// Required method
fn oid() -> u32;
// Provided method
fn encode(&self, format: Format, buf: &mut Vec<u8>) { ... }
}Expand description
Combined encoding trait that supports both formats.
Required Methods§
Provided Methods§
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.