pub struct Codec { /* private fields */ }Implementations
sourceimpl Codec
impl Codec
pub fn is_encoder(&self) -> bool
pub fn is_decoder(&self) -> bool
pub fn name(&self) -> &str
pub fn description(&self) -> &str
pub fn medium(&self) -> Type
pub fn id(&self) -> Id
pub fn is_video(&self) -> bool
pub fn video(self) -> Result<Video, Error>
pub fn is_audio(&self) -> bool
pub fn audio(self) -> Result<Audio, Error>
pub fn max_lowres(&self) -> i32
pub fn capabilities(&self) -> Capabilities
pub fn profiles(&self) -> Option<ProfileIter>
Trait Implementations
impl Copy for Codec
impl Eq for Codec
impl Send for Codec
impl StructuralEq for Codec
impl StructuralPartialEq for Codec
impl Sync for Codec
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more