Struct ac_ffmpeg::codec::audio::ChannelLayout
source · pub struct ChannelLayout { /* private fields */ }
Expand description
Channel layout.
Implementations§
source§impl ChannelLayout
impl ChannelLayout
sourcepub fn from_channels(channels: u32) -> Option<Self>
pub fn from_channels(channels: u32) -> Option<Self>
Get default channel layout for a given number of channels.
Methods from Deref<Target = ChannelLayoutRef>§
Trait Implementations§
source§impl AsRef<ChannelLayoutRef> for ChannelLayout
impl AsRef<ChannelLayoutRef> for ChannelLayout
source§fn as_ref(&self) -> &ChannelLayoutRef
fn as_ref(&self) -> &ChannelLayoutRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<ChannelLayoutRef> for ChannelLayout
impl Borrow<ChannelLayoutRef> for ChannelLayout
source§fn borrow(&self) -> &ChannelLayoutRef
fn borrow(&self) -> &ChannelLayoutRef
Immutably borrows from an owned value. Read more
source§impl Clone for ChannelLayout
impl Clone for ChannelLayout
source§impl Deref for ChannelLayout
impl Deref for ChannelLayout
source§impl Drop for ChannelLayout
impl Drop for ChannelLayout
source§impl FromStr for ChannelLayout
impl FromStr for ChannelLayout
source§impl PartialEq<ChannelLayout> for ChannelLayout
impl PartialEq<ChannelLayout> for ChannelLayout
source§impl PartialEq<ChannelLayout> for ChannelLayoutRef
impl PartialEq<ChannelLayout> for ChannelLayoutRef
source§fn eq(&self, other: &ChannelLayout) -> bool
fn eq(&self, other: &ChannelLayout) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<ChannelLayoutRef> for ChannelLayout
impl PartialEq<ChannelLayoutRef> for ChannelLayout
source§fn eq(&self, other: &ChannelLayoutRef) -> bool
fn eq(&self, other: &ChannelLayoutRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.