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

The type of the structure used to describe a codec.

Required Methods

Creates a new codec list.

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.

Appends a codec to the list.

Provided Methods

Creates a new codec list starting from a list of codec descriptors.

Implementors