pub trait CodecList: Sized {
type D: ?Sized;
// Required methods
fn new() -> Self;
fn by_name(&self, name: &str) -> Option<&'static Self::D>;
fn append(&mut self, desc: &'static Self::D);
// Provided method
fn from_list(descs: &[&'static Self::D]) -> Self { ... }
}Expand description
Defines a series of methods to interact with a list of codec descriptors.
Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".