pub trait CdrEncode {
// Required method
fn encode(&self, enc: &mut Encoder) -> Result<()>;
// Provided method
fn encode_slice(items: &[Self], enc: &mut Encoder) -> Result<()>
where Self: Sized { ... }
}Expand description
A type that can be written as CDR.
Vec<T> and [T] are written as an IDL sequence (with a length);
[T; N] is written as an IDL array (without a length).
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".