Struct symphonia_core::codecs::CodecDescriptor
source · pub struct CodecDescriptor {
pub codec: CodecType,
pub short_name: &'static str,
pub long_name: &'static str,
pub inst_func: fn(_: &CodecParameters, _: &DecoderOptions) -> Result<Box<dyn Decoder>>,
}
Expand description
A CodecDescriptor
stores a description of a single logical codec. Common information such as
the CodecType
, a short name, and a long name are provided. The CodecDescriptor
also provides
an instantiation function. When the instantiation function is called, a Decoder
for the codec
is returned.
Fields§
§codec: CodecType
The CodecType
identifier.
short_name: &'static str
A short ASCII-only string identifying the codec.
long_name: &'static str
A longer, more descriptive, string identifying the codec.
inst_func: fn(_: &CodecParameters, _: &DecoderOptions) -> Result<Box<dyn Decoder>>
Trait Implementations§
source§impl Clone for CodecDescriptor
impl Clone for CodecDescriptor
source§fn clone(&self) -> CodecDescriptor
fn clone(&self) -> CodecDescriptor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for CodecDescriptor
Auto Trait Implementations§
impl Freeze for CodecDescriptor
impl RefUnwindSafe for CodecDescriptor
impl Send for CodecDescriptor
impl Sync for CodecDescriptor
impl Unpin for CodecDescriptor
impl UnwindSafe for CodecDescriptor
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)