pub trait Interface: InternalInterface + Default {
type Context;
type Cfg;
// Required methods
fn kind(&self) -> Kind;
fn create(
&self,
cfg: <Self as Interface>::Cfg,
flags: vpx_codec_flags_t,
) -> Result<<Self as Interface>::Context, Error>;
// Provided method
fn name(&self) -> &'static str { ... }
}Required Associated Types§
Required Methods§
fn kind(&self) -> Kind
fn create( &self, cfg: <Self as Interface>::Cfg, flags: vpx_codec_flags_t, ) -> Result<<Self as Interface>::Context, Error>
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".