pub struct AudioCodecId(/* private fields */);Expand description
An AudioCodecId is a unique identifier used to identify a specific audio codec.
§Creating a Codec ID
Using a well-known codec ID is highly recommended to maximize compatibility
between components, libraries, and applications. However, if a codec requires custom codec ID,
or there is no well-known ID, then the FourCc for the codec may be converted into a codec
ID.
Implementations§
Source§impl AudioCodecId
impl AudioCodecId
Sourcepub const fn new(cc: FourCc) -> AudioCodecId
pub const fn new(cc: FourCc) -> AudioCodecId
Create a new audio codec ID from a FourCC.
Trait Implementations§
Source§impl Clone for AudioCodecId
impl Clone for AudioCodecId
Source§fn clone(&self) -> AudioCodecId
fn clone(&self) -> AudioCodecId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AudioCodecId
impl Debug for AudioCodecId
Source§impl Default for AudioCodecId
impl Default for AudioCodecId
Source§impl Display for AudioCodecId
impl Display for AudioCodecId
Source§impl From<AudioCodecId> for CodecId
impl From<AudioCodecId> for CodecId
Source§fn from(value: AudioCodecId) -> Self
fn from(value: AudioCodecId) -> Self
Converts to this type from the input type.
Source§impl From<FourCc> for AudioCodecId
impl From<FourCc> for AudioCodecId
Source§impl Hash for AudioCodecId
impl Hash for AudioCodecId
Source§impl Ord for AudioCodecId
impl Ord for AudioCodecId
Source§fn cmp(&self, other: &AudioCodecId) -> Ordering
fn cmp(&self, other: &AudioCodecId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AudioCodecId
impl PartialEq for AudioCodecId
Source§fn eq(&self, other: &AudioCodecId) -> bool
fn eq(&self, other: &AudioCodecId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AudioCodecId
impl PartialOrd for AudioCodecId
impl Copy for AudioCodecId
impl Eq for AudioCodecId
impl StructuralPartialEq for AudioCodecId
Auto Trait Implementations§
impl Freeze for AudioCodecId
impl RefUnwindSafe for AudioCodecId
impl Send for AudioCodecId
impl Sync for AudioCodecId
impl Unpin for AudioCodecId
impl UnsafeUnpin for AudioCodecId
impl UnwindSafe for AudioCodecId
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