pub trait CodecList: Sized {
type D: ?Sized;
fn new() -> Self;
fn by_name(&self, name: &str) -> Option<&'static Self::D>;
fn append(&mut self, desc: &'static Self::D);
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
Search by name whether a codec descriptor is in the codec list and returns it.
If the requested codec descriptor is not in the list,
None is returned.