pub struct SubtitleCodecId(/* private fields */);Expand description
An SubtitleCodecId is a unique identifier used to identify a specific video 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 SubtitleCodecId
impl SubtitleCodecId
Sourcepub const fn new(cc: FourCc) -> SubtitleCodecId
pub const fn new(cc: FourCc) -> SubtitleCodecId
Create a new subtitle codec ID from a FourCC.
Trait Implementations§
Source§impl Clone for SubtitleCodecId
impl Clone for SubtitleCodecId
Source§fn clone(&self) -> SubtitleCodecId
fn clone(&self) -> SubtitleCodecId
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 SubtitleCodecId
impl Debug for SubtitleCodecId
Source§impl Default for SubtitleCodecId
impl Default for SubtitleCodecId
Source§impl Display for SubtitleCodecId
impl Display for SubtitleCodecId
Source§impl From<FourCc> for SubtitleCodecId
impl From<FourCc> for SubtitleCodecId
Source§impl From<SubtitleCodecId> for CodecId
impl From<SubtitleCodecId> for CodecId
Source§fn from(value: SubtitleCodecId) -> Self
fn from(value: SubtitleCodecId) -> Self
Converts to this type from the input type.
Source§impl Hash for SubtitleCodecId
impl Hash for SubtitleCodecId
Source§impl Ord for SubtitleCodecId
impl Ord for SubtitleCodecId
Source§fn cmp(&self, other: &SubtitleCodecId) -> Ordering
fn cmp(&self, other: &SubtitleCodecId) -> 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 SubtitleCodecId
impl PartialEq for SubtitleCodecId
Source§fn eq(&self, other: &SubtitleCodecId) -> bool
fn eq(&self, other: &SubtitleCodecId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SubtitleCodecId
impl PartialOrd for SubtitleCodecId
impl Copy for SubtitleCodecId
impl Eq for SubtitleCodecId
impl StructuralPartialEq for SubtitleCodecId
Auto Trait Implementations§
impl Freeze for SubtitleCodecId
impl RefUnwindSafe for SubtitleCodecId
impl Send for SubtitleCodecId
impl Sync for SubtitleCodecId
impl Unpin for SubtitleCodecId
impl UnsafeUnpin for SubtitleCodecId
impl UnwindSafe for SubtitleCodecId
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