#[non_exhaustive]pub enum ChannelLayout {
Show 44 variants
Mono,
Stereo,
StereoDownmix,
Binaural,
Ch2_1,
Ch3_0,
Ch3_0Back,
Ch3_1,
Ch3_1_2,
Ch4_0,
Ch4_1,
Quad,
QuadSide,
Ch5_0,
Ch5_0Back,
Ch5_1,
Ch5_1Back,
Ch5_1_2,
Ch5_1_2Back,
Ch5_1_4Back,
Ch6_0,
Ch6_0Front,
Ch6_1,
Ch6_1Back,
Ch6_1Front,
Ch7_0,
Ch7_0Front,
Ch7_1,
Ch7_1Wide,
Ch7_1WideBack,
Ch7_1_2,
Ch7_1_4Back,
Ch7_2_3,
Ch9_1_4Back,
Ch9_1_6,
Ch22_2,
Hexagonal,
Octagonal,
Hexadecagonal,
Cube,
Ambisonic1,
Ambisonic2,
Ambisonic3,
Other(SmolStr),
}alloc or std only.Expand description
Audio channel layout — the common named layouts plus an
Other(SmolStr) lossless escape.
Read from FFmpeg AV_CH_LAYOUT_* constants (AVChannelLayout’s
canonical name) / WebCodecs AudioData.channelLayout. Layouts FFmpeg
can describe but this enum doesn’t enumerate (a custom channel
ordering, an ambisonic grouping beyond Ambisonic1/2/3)
round-trip through Self::Other carrying the FFmpeg-canonical slug
verbatim — never silently collapsed.
#[non_exhaustive] keeps future additions non-breaking. Display
renders via Self::as_str.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Mono
"mono" — FC (FFmpeg AV_CH_LAYOUT_MONO).
Stereo
"stereo" — FL+FR (FFmpeg AV_CH_LAYOUT_STEREO).
StereoDownmix
"downmix" — DL+DR (FFmpeg AV_CH_LAYOUT_STEREO_DOWNMIX).
The Dolby matrix-encoded stereo pair, carried as its own channel
ids so a downmix is distinguishable from an original Stereo
recording. FFmpeg names the constant after the source and the map
entry after the result, hence the crossed spelling.
Binaural
"binaural" — BIL+BIR (FFmpeg AV_CH_LAYOUT_BINAURAL).
Not a stereo pair. Binaural audio is rendered for headphones
with the head-related transfer function already baked in, so each
channel is what one ear receives rather than what one speaker
emits. Playing it over loudspeakers, or downmixing it to
Self::Mono, destroys the spatial cue it exists to carry —
which is why FFmpeg gives it channel ids of its own instead of
reusing FL/FR.
Ch2_1
"2.1" — FL+FR+LFE (FFmpeg AV_CH_LAYOUT_2POINT1).
Ch3_0
"3.0" — FL+FR+FC (FFmpeg AV_CH_LAYOUT_SURROUND).
Ch3_0Back
"3.0(back)" — FL+FR+BC (FFmpeg AV_CH_LAYOUT_2_1).
Back-centre surround rather than a front centre. The ident follows
the slug here: the constant’s 2_1 is a historical spelling, and
as an ident it would collide with the real 2.1 above.
Ch3_1
"3.1" — FL+FR+FC+LFE (FFmpeg AV_CH_LAYOUT_3POINT1).
Ch3_1_2
"3.1.2" — FL+FR+FC+LFE+TFL+TFR (FFmpeg
AV_CH_LAYOUT_3POINT1POINT2).
Ch4_0
"4.0" — FL+FR+FC+BC (FFmpeg AV_CH_LAYOUT_4POINT0).
Ch4_1
"4.1" — FL+FR+FC+LFE+BC (FFmpeg AV_CH_LAYOUT_4POINT1).
Quad
"quad" — FL+FR+BL+BR (FFmpeg AV_CH_LAYOUT_QUAD).
The side four-channel layout is Self::QuadSide.
QuadSide
"quad(side)" — FL+FR+SL+SR (FFmpeg AV_CH_LAYOUT_2_2).
The ident follows the slug for the same reason
Self::Ch3_0Back’s does: the constant’s 2_2 names no
arrangement a reader would recognise, and reads as a “2.2” that
does not exist.
Ch5_0
"5.0(side)" — FL+FR+FC+SL+SR (FFmpeg AV_CH_LAYOUT_5POINT0).
FFmpeg’s plain "5.0" is the back layout, not this one — see
Self::Ch5_0Back.
Ch5_0Back
"5.0" — FL+FR+FC+BL+BR (FFmpeg AV_CH_LAYOUT_5POINT0_BACK).
The unqualified "5.0" is FFmpeg’s name for the back-speaker
layout; the side-speaker one is Self::Ch5_0, spelled
"5.0(side)".
Ch5_1
"5.1(side)" — FL+FR+FC+LFE+SL+SR (FFmpeg
AV_CH_LAYOUT_5POINT1).
FFmpeg’s plain "5.1" is the back layout — see
Self::Ch5_1Back.
Ch5_1Back
"5.1" — FL+FR+FC+LFE+BL+BR (FFmpeg
AV_CH_LAYOUT_5POINT1_BACK).
This is what an FFmpeg-sourced "5.1" means — the historically
unqualified spelling belongs to the back-speaker layout, and the
side-speaker one is Self::Ch5_1, spelled "5.1(side)".
Ch5_1_2
"5.1.2" — FL+FR+FC+LFE+SL+SR+TFL+TFR (FFmpeg
AV_CH_LAYOUT_5POINT1POINT2).
The unqualified name is the side layout here — the opposite of
the 5.1 family, where it is the back one. See Self::Ch5_1_2Back.
Ch5_1_2Back
"5.1.2(back)" — FL+FR+FC+LFE+BL+BR+TFL+TFR (FFmpeg
AV_CH_LAYOUT_5POINT1POINT2_BACK).
Here the qualifier runs the opposite way to the 5.1 family: the
unqualified "5.1.2" is the side layout, Self::Ch5_1_2.
FFmpeg’s AV_CH_LAYOUT_7POINT1_TOP_BACK is a deprecated alias of
this same layout, not a separate one.
Ch5_1_4Back
"5.1.4" — FL+FR+FC+LFE+SL+SR+TFL+TFR+TBL+TBR (FFmpeg
AV_CH_LAYOUT_5POINT1POINT4_BACK).
The constant’s _BACK marks the top-back height pair, not the
surrounds — those are side (SL/SR) — so the slug carries no
qualifier.
Ch6_0
"6.0" — FL+FR+FC+BC+SL+SR (FFmpeg AV_CH_LAYOUT_6POINT0).
Ch6_0Front
"6.0(front)" — FL+FR+FLC+FRC+SL+SR (FFmpeg
AV_CH_LAYOUT_6POINT0_FRONT).
No front centre: the centre pair is FLC/FRC, off-centre.
Ch6_1
"6.1" — FL+FR+FC+LFE+BC+SL+SR (FFmpeg AV_CH_LAYOUT_6POINT1).
Ch6_1Back
"6.1(back)" — FL+FR+FC+LFE+BL+BR+BC (FFmpeg
AV_CH_LAYOUT_6POINT1_BACK).
Ch6_1Front
"6.1(front)" — FL+FR+LFE+FLC+FRC+SL+SR (FFmpeg
AV_CH_LAYOUT_6POINT1_FRONT).
No front centre, as with Self::Ch6_0Front.
Ch7_0
"7.0" — FL+FR+FC+BL+BR+SL+SR (FFmpeg AV_CH_LAYOUT_7POINT0).
Ch7_0Front
"7.0(front)" — FL+FR+FC+FLC+FRC+SL+SR (FFmpeg
AV_CH_LAYOUT_7POINT0_FRONT).
Ch7_1
"7.1" — FL+FR+FC+LFE+BL+BR+SL+SR (FFmpeg
AV_CH_LAYOUT_7POINT1).
Ch7_1Wide
"7.1(wide-side)" — FL+FR+FC+LFE+FLC+FRC+SL+SR (FFmpeg
AV_CH_LAYOUT_7POINT1_WIDE).
FFmpeg’s plain "7.1(wide)" is the back layout, not this one —
see Self::Ch7_1WideBack. The same crossing as the 5.x pairs,
one family further up.
Ch7_1WideBack
"7.1(wide)" — FL+FR+FC+LFE+BL+BR+FLC+FRC (FFmpeg
AV_CH_LAYOUT_7POINT1_WIDE_BACK).
The unqualified "7.1(wide)" belongs to the back-speaker layout;
the side-speaker one is Self::Ch7_1Wide, spelled
"7.1(wide-side)".
Ch7_1_2
"7.1.2" — FL+FR+FC+LFE+BL+BR+SL+SR+TFL+TFR (FFmpeg
AV_CH_LAYOUT_7POINT1POINT2).
Ch7_1_4Back
"7.1.4" — FL+FR+FC+LFE+BL+BR+SL+SR+TFL+TFR+TBL+TBR (FFmpeg
AV_CH_LAYOUT_7POINT1POINT4_BACK).
_BACK marks the top-back height pair, not the surrounds — see
Self::Ch5_1_4Back.
Ch7_2_3
"7.2.3" — FL+FR+FC+LFE+BL+BR+SL+SR+TFL+TFR+TBC+LFE2 (FFmpeg
AV_CH_LAYOUT_7POINT2POINT3).
The .2 is two LFE channels (LFE and LFE2); the .3 is three
height channels (TFL, TFR, TBC).
Ch9_1_4Back
"9.1.4" — FL+FR+FC+LFE+BL+BR+FLC+FRC+SL+SR+TFL+TFR+TBL+TBR
(FFmpeg AV_CH_LAYOUT_9POINT1POINT4_BACK).
_BACK marks the top-back height pair, not the surrounds — see
Self::Ch5_1_4Back.
Ch9_1_6
"9.1.6" — FL+FR+FC+LFE+BL+BR+FLC+FRC+SL+SR+TFL+TFR+TBL+TBR+
TSL+TSR (FFmpeg AV_CH_LAYOUT_9POINT1POINT6).
Self::Ch9_1_4Back plus the top side pair. This one is the
exception that proves the previous rule: its constant carries no
_BACK, because the height channels it adds are not back ones.
Ch22_2
"22.2" — the 24-channel NHK Super Hi-Vision arrangement:
FL+FR+FC+LFE+BL+BR+FLC+FRC+BC+SL+SR+TC+TFL+TFC+TFR+TBL+TBC+TBR+
LFE2+TSL+TSR+BFC+BFL+BFR (FFmpeg AV_CH_LAYOUT_22POINT2).
Hexagonal
"hexagonal" — FL+FR+FC+BL+BR+BC (FFmpeg
AV_CH_LAYOUT_HEXAGONAL). Six channels in a hexagon, no LFE.
Octagonal
"octagonal" — FL+FR+FC+BL+BR+BC+SL+SR (FFmpeg
AV_CH_LAYOUT_OCTAGONAL). Eight channels around, no LFE.
Hexadecagonal
"hexadecagonal" — FL+FR+FC+BL+BR+BC+SL+SR+TFL+TFC+TFR+TBL+TBC+
TBR+WL+WR (FFmpeg AV_CH_LAYOUT_HEXADECAGONAL). Sixteen channels,
no LFE.
Cube
"cube" — FL+FR+BL+BR+TFL+TFR+TBL+TBR (FFmpeg
AV_CH_LAYOUT_CUBE). Eight channels on the corners of a cube, no
centre and no LFE.
Ambisonic1
First-order Ambisonic B-format (WXYZ, 4 channels): "ambisonic1".
Ambisonic2
Second-order Ambisonic (9 channels): "ambisonic2".
Ambisonic3
Third-order Ambisonic (16 channels): "ambisonic3".
Other(SmolStr)
A layout not enumerated above — carries the FFmpeg-canonical name verbatim (a custom channel ordering, a higher-order ambisonic grouping, a layout a later FFmpeg adds). Lossless escape.
Every entry in FFmpeg n9.0’s channel_layout_map[] is named above,
so nothing this release can classify lands here.
Implementations§
Source§impl ChannelLayout
impl ChannelLayout
Sourcepub const fn is_mono(&self) -> bool
pub const fn is_mono(&self) -> bool
Returns true if this value is of type Mono. Returns false otherwise
Sourcepub const fn is_stereo(&self) -> bool
pub const fn is_stereo(&self) -> bool
Returns true if this value is of type Stereo. Returns false otherwise
Sourcepub const fn is_stereo_downmix(&self) -> bool
pub const fn is_stereo_downmix(&self) -> bool
Returns true if this value is of type StereoDownmix. Returns false otherwise
Sourcepub const fn is_binaural(&self) -> bool
pub const fn is_binaural(&self) -> bool
Returns true if this value is of type Binaural. Returns false otherwise
Sourcepub const fn is_ch_2_1(&self) -> bool
pub const fn is_ch_2_1(&self) -> bool
Returns true if this value is of type Ch2_1. Returns false otherwise
Sourcepub const fn is_ch_3_0(&self) -> bool
pub const fn is_ch_3_0(&self) -> bool
Returns true if this value is of type Ch3_0. Returns false otherwise
Sourcepub const fn is_ch_3_0_back(&self) -> bool
pub const fn is_ch_3_0_back(&self) -> bool
Returns true if this value is of type Ch3_0Back. Returns false otherwise
Sourcepub const fn is_ch_3_1(&self) -> bool
pub const fn is_ch_3_1(&self) -> bool
Returns true if this value is of type Ch3_1. Returns false otherwise
Sourcepub const fn is_ch_3_1_2(&self) -> bool
pub const fn is_ch_3_1_2(&self) -> bool
Returns true if this value is of type Ch3_1_2. Returns false otherwise
Sourcepub const fn is_ch_4_0(&self) -> bool
pub const fn is_ch_4_0(&self) -> bool
Returns true if this value is of type Ch4_0. Returns false otherwise
Sourcepub const fn is_ch_4_1(&self) -> bool
pub const fn is_ch_4_1(&self) -> bool
Returns true if this value is of type Ch4_1. Returns false otherwise
Sourcepub const fn is_quad(&self) -> bool
pub const fn is_quad(&self) -> bool
Returns true if this value is of type Quad. Returns false otherwise
Sourcepub const fn is_quad_side(&self) -> bool
pub const fn is_quad_side(&self) -> bool
Returns true if this value is of type QuadSide. Returns false otherwise
Sourcepub const fn is_ch_5_0(&self) -> bool
pub const fn is_ch_5_0(&self) -> bool
Returns true if this value is of type Ch5_0. Returns false otherwise
Sourcepub const fn is_ch_5_0_back(&self) -> bool
pub const fn is_ch_5_0_back(&self) -> bool
Returns true if this value is of type Ch5_0Back. Returns false otherwise
Sourcepub const fn is_ch_5_1(&self) -> bool
pub const fn is_ch_5_1(&self) -> bool
Returns true if this value is of type Ch5_1. Returns false otherwise
Sourcepub const fn is_ch_5_1_back(&self) -> bool
pub const fn is_ch_5_1_back(&self) -> bool
Returns true if this value is of type Ch5_1Back. Returns false otherwise
Sourcepub const fn is_ch_5_1_2(&self) -> bool
pub const fn is_ch_5_1_2(&self) -> bool
Returns true if this value is of type Ch5_1_2. Returns false otherwise
Sourcepub const fn is_ch_5_1_2_back(&self) -> bool
pub const fn is_ch_5_1_2_back(&self) -> bool
Returns true if this value is of type Ch5_1_2Back. Returns false otherwise
Sourcepub const fn is_ch_5_1_4_back(&self) -> bool
pub const fn is_ch_5_1_4_back(&self) -> bool
Returns true if this value is of type Ch5_1_4Back. Returns false otherwise
Sourcepub const fn is_ch_6_0(&self) -> bool
pub const fn is_ch_6_0(&self) -> bool
Returns true if this value is of type Ch6_0. Returns false otherwise
Sourcepub const fn is_ch_6_0_front(&self) -> bool
pub const fn is_ch_6_0_front(&self) -> bool
Returns true if this value is of type Ch6_0Front. Returns false otherwise
Sourcepub const fn is_ch_6_1(&self) -> bool
pub const fn is_ch_6_1(&self) -> bool
Returns true if this value is of type Ch6_1. Returns false otherwise
Sourcepub const fn is_ch_6_1_back(&self) -> bool
pub const fn is_ch_6_1_back(&self) -> bool
Returns true if this value is of type Ch6_1Back. Returns false otherwise
Sourcepub const fn is_ch_6_1_front(&self) -> bool
pub const fn is_ch_6_1_front(&self) -> bool
Returns true if this value is of type Ch6_1Front. Returns false otherwise
Sourcepub const fn is_ch_7_0(&self) -> bool
pub const fn is_ch_7_0(&self) -> bool
Returns true if this value is of type Ch7_0. Returns false otherwise
Sourcepub const fn is_ch_7_0_front(&self) -> bool
pub const fn is_ch_7_0_front(&self) -> bool
Returns true if this value is of type Ch7_0Front. Returns false otherwise
Sourcepub const fn is_ch_7_1(&self) -> bool
pub const fn is_ch_7_1(&self) -> bool
Returns true if this value is of type Ch7_1. Returns false otherwise
Sourcepub const fn is_ch_7_1_wide(&self) -> bool
pub const fn is_ch_7_1_wide(&self) -> bool
Returns true if this value is of type Ch7_1Wide. Returns false otherwise
Sourcepub const fn is_ch_7_1_wide_back(&self) -> bool
pub const fn is_ch_7_1_wide_back(&self) -> bool
Returns true if this value is of type Ch7_1WideBack. Returns false otherwise
Sourcepub const fn is_ch_7_1_2(&self) -> bool
pub const fn is_ch_7_1_2(&self) -> bool
Returns true if this value is of type Ch7_1_2. Returns false otherwise
Sourcepub const fn is_ch_7_1_4_back(&self) -> bool
pub const fn is_ch_7_1_4_back(&self) -> bool
Returns true if this value is of type Ch7_1_4Back. Returns false otherwise
Sourcepub const fn is_ch_7_2_3(&self) -> bool
pub const fn is_ch_7_2_3(&self) -> bool
Returns true if this value is of type Ch7_2_3. Returns false otherwise
Sourcepub const fn is_ch_9_1_4_back(&self) -> bool
pub const fn is_ch_9_1_4_back(&self) -> bool
Returns true if this value is of type Ch9_1_4Back. Returns false otherwise
Sourcepub const fn is_ch_9_1_6(&self) -> bool
pub const fn is_ch_9_1_6(&self) -> bool
Returns true if this value is of type Ch9_1_6. Returns false otherwise
Sourcepub const fn is_ch_22_2(&self) -> bool
pub const fn is_ch_22_2(&self) -> bool
Returns true if this value is of type Ch22_2. Returns false otherwise
Sourcepub const fn is_hexagonal(&self) -> bool
pub const fn is_hexagonal(&self) -> bool
Returns true if this value is of type Hexagonal. Returns false otherwise
Sourcepub const fn is_octagonal(&self) -> bool
pub const fn is_octagonal(&self) -> bool
Returns true if this value is of type Octagonal. Returns false otherwise
Sourcepub const fn is_hexadecagonal(&self) -> bool
pub const fn is_hexadecagonal(&self) -> bool
Returns true if this value is of type Hexadecagonal. Returns false otherwise
Sourcepub const fn is_cube(&self) -> bool
pub const fn is_cube(&self) -> bool
Returns true if this value is of type Cube. Returns false otherwise
Sourcepub const fn is_ambisonic_1(&self) -> bool
pub const fn is_ambisonic_1(&self) -> bool
Returns true if this value is of type Ambisonic1. Returns false otherwise
Sourcepub const fn is_ambisonic_2(&self) -> bool
pub const fn is_ambisonic_2(&self) -> bool
Returns true if this value is of type Ambisonic2. Returns false otherwise
Sourcepub const fn is_ambisonic_3(&self) -> bool
pub const fn is_ambisonic_3(&self) -> bool
Returns true if this value is of type Ambisonic3. Returns false otherwise
Source§impl ChannelLayout
impl ChannelLayout
Sourcepub fn unwrap_mono(self)
pub fn unwrap_mono(self)
Unwraps this value to the ChannelLayout::Mono variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_mono_ref(&self)
pub fn unwrap_mono_ref(&self)
Unwraps this reference to the ChannelLayout::Mono variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_mono_mut(&mut self)
pub fn unwrap_mono_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Mono variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_stereo(self)
pub fn unwrap_stereo(self)
Unwraps this value to the ChannelLayout::Stereo variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_stereo_ref(&self)
pub fn unwrap_stereo_ref(&self)
Unwraps this reference to the ChannelLayout::Stereo variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_stereo_mut(&mut self)
pub fn unwrap_stereo_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Stereo variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_stereo_downmix(self)
pub fn unwrap_stereo_downmix(self)
Unwraps this value to the ChannelLayout::StereoDownmix variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_stereo_downmix_ref(&self)
pub fn unwrap_stereo_downmix_ref(&self)
Unwraps this reference to the ChannelLayout::StereoDownmix variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_stereo_downmix_mut(&mut self)
pub fn unwrap_stereo_downmix_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::StereoDownmix variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_binaural(self)
pub fn unwrap_binaural(self)
Unwraps this value to the ChannelLayout::Binaural variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_binaural_ref(&self)
pub fn unwrap_binaural_ref(&self)
Unwraps this reference to the ChannelLayout::Binaural variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_binaural_mut(&mut self)
pub fn unwrap_binaural_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Binaural variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_2_1(self)
pub fn unwrap_ch_2_1(self)
Unwraps this value to the ChannelLayout::Ch2_1 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_2_1_ref(&self)
pub fn unwrap_ch_2_1_ref(&self)
Unwraps this reference to the ChannelLayout::Ch2_1 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_2_1_mut(&mut self)
pub fn unwrap_ch_2_1_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch2_1 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_3_0(self)
pub fn unwrap_ch_3_0(self)
Unwraps this value to the ChannelLayout::Ch3_0 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_3_0_ref(&self)
pub fn unwrap_ch_3_0_ref(&self)
Unwraps this reference to the ChannelLayout::Ch3_0 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_3_0_mut(&mut self)
pub fn unwrap_ch_3_0_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch3_0 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_3_0_back(self)
pub fn unwrap_ch_3_0_back(self)
Unwraps this value to the ChannelLayout::Ch3_0Back variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_3_0_back_ref(&self)
pub fn unwrap_ch_3_0_back_ref(&self)
Unwraps this reference to the ChannelLayout::Ch3_0Back variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_3_0_back_mut(&mut self)
pub fn unwrap_ch_3_0_back_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch3_0Back variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_3_1(self)
pub fn unwrap_ch_3_1(self)
Unwraps this value to the ChannelLayout::Ch3_1 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_3_1_ref(&self)
pub fn unwrap_ch_3_1_ref(&self)
Unwraps this reference to the ChannelLayout::Ch3_1 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_3_1_mut(&mut self)
pub fn unwrap_ch_3_1_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch3_1 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_3_1_2(self)
pub fn unwrap_ch_3_1_2(self)
Unwraps this value to the ChannelLayout::Ch3_1_2 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_3_1_2_ref(&self)
pub fn unwrap_ch_3_1_2_ref(&self)
Unwraps this reference to the ChannelLayout::Ch3_1_2 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_3_1_2_mut(&mut self)
pub fn unwrap_ch_3_1_2_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch3_1_2 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_4_0(self)
pub fn unwrap_ch_4_0(self)
Unwraps this value to the ChannelLayout::Ch4_0 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_4_0_ref(&self)
pub fn unwrap_ch_4_0_ref(&self)
Unwraps this reference to the ChannelLayout::Ch4_0 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_4_0_mut(&mut self)
pub fn unwrap_ch_4_0_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch4_0 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_4_1(self)
pub fn unwrap_ch_4_1(self)
Unwraps this value to the ChannelLayout::Ch4_1 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_4_1_ref(&self)
pub fn unwrap_ch_4_1_ref(&self)
Unwraps this reference to the ChannelLayout::Ch4_1 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_4_1_mut(&mut self)
pub fn unwrap_ch_4_1_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch4_1 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_quad(self)
pub fn unwrap_quad(self)
Unwraps this value to the ChannelLayout::Quad variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_quad_ref(&self)
pub fn unwrap_quad_ref(&self)
Unwraps this reference to the ChannelLayout::Quad variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_quad_mut(&mut self)
pub fn unwrap_quad_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Quad variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_quad_side(self)
pub fn unwrap_quad_side(self)
Unwraps this value to the ChannelLayout::QuadSide variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_quad_side_ref(&self)
pub fn unwrap_quad_side_ref(&self)
Unwraps this reference to the ChannelLayout::QuadSide variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_quad_side_mut(&mut self)
pub fn unwrap_quad_side_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::QuadSide variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_5_0(self)
pub fn unwrap_ch_5_0(self)
Unwraps this value to the ChannelLayout::Ch5_0 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_5_0_ref(&self)
pub fn unwrap_ch_5_0_ref(&self)
Unwraps this reference to the ChannelLayout::Ch5_0 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_5_0_mut(&mut self)
pub fn unwrap_ch_5_0_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch5_0 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_5_0_back(self)
pub fn unwrap_ch_5_0_back(self)
Unwraps this value to the ChannelLayout::Ch5_0Back variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_5_0_back_ref(&self)
pub fn unwrap_ch_5_0_back_ref(&self)
Unwraps this reference to the ChannelLayout::Ch5_0Back variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_5_0_back_mut(&mut self)
pub fn unwrap_ch_5_0_back_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch5_0Back variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_5_1(self)
pub fn unwrap_ch_5_1(self)
Unwraps this value to the ChannelLayout::Ch5_1 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_5_1_ref(&self)
pub fn unwrap_ch_5_1_ref(&self)
Unwraps this reference to the ChannelLayout::Ch5_1 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_5_1_mut(&mut self)
pub fn unwrap_ch_5_1_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch5_1 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_5_1_back(self)
pub fn unwrap_ch_5_1_back(self)
Unwraps this value to the ChannelLayout::Ch5_1Back variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_5_1_back_ref(&self)
pub fn unwrap_ch_5_1_back_ref(&self)
Unwraps this reference to the ChannelLayout::Ch5_1Back variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_5_1_back_mut(&mut self)
pub fn unwrap_ch_5_1_back_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch5_1Back variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_5_1_2(self)
pub fn unwrap_ch_5_1_2(self)
Unwraps this value to the ChannelLayout::Ch5_1_2 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_5_1_2_ref(&self)
pub fn unwrap_ch_5_1_2_ref(&self)
Unwraps this reference to the ChannelLayout::Ch5_1_2 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_5_1_2_mut(&mut self)
pub fn unwrap_ch_5_1_2_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch5_1_2 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_5_1_2_back(self)
pub fn unwrap_ch_5_1_2_back(self)
Unwraps this value to the ChannelLayout::Ch5_1_2Back variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_5_1_2_back_ref(&self)
pub fn unwrap_ch_5_1_2_back_ref(&self)
Unwraps this reference to the ChannelLayout::Ch5_1_2Back variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_5_1_2_back_mut(&mut self)
pub fn unwrap_ch_5_1_2_back_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch5_1_2Back variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_5_1_4_back(self)
pub fn unwrap_ch_5_1_4_back(self)
Unwraps this value to the ChannelLayout::Ch5_1_4Back variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_5_1_4_back_ref(&self)
pub fn unwrap_ch_5_1_4_back_ref(&self)
Unwraps this reference to the ChannelLayout::Ch5_1_4Back variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_5_1_4_back_mut(&mut self)
pub fn unwrap_ch_5_1_4_back_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch5_1_4Back variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_6_0(self)
pub fn unwrap_ch_6_0(self)
Unwraps this value to the ChannelLayout::Ch6_0 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_6_0_ref(&self)
pub fn unwrap_ch_6_0_ref(&self)
Unwraps this reference to the ChannelLayout::Ch6_0 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_6_0_mut(&mut self)
pub fn unwrap_ch_6_0_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch6_0 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_6_0_front(self)
pub fn unwrap_ch_6_0_front(self)
Unwraps this value to the ChannelLayout::Ch6_0Front variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_6_0_front_ref(&self)
pub fn unwrap_ch_6_0_front_ref(&self)
Unwraps this reference to the ChannelLayout::Ch6_0Front variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_6_0_front_mut(&mut self)
pub fn unwrap_ch_6_0_front_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch6_0Front variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_6_1(self)
pub fn unwrap_ch_6_1(self)
Unwraps this value to the ChannelLayout::Ch6_1 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_6_1_ref(&self)
pub fn unwrap_ch_6_1_ref(&self)
Unwraps this reference to the ChannelLayout::Ch6_1 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_6_1_mut(&mut self)
pub fn unwrap_ch_6_1_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch6_1 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_6_1_back(self)
pub fn unwrap_ch_6_1_back(self)
Unwraps this value to the ChannelLayout::Ch6_1Back variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_6_1_back_ref(&self)
pub fn unwrap_ch_6_1_back_ref(&self)
Unwraps this reference to the ChannelLayout::Ch6_1Back variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_6_1_back_mut(&mut self)
pub fn unwrap_ch_6_1_back_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch6_1Back variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_6_1_front(self)
pub fn unwrap_ch_6_1_front(self)
Unwraps this value to the ChannelLayout::Ch6_1Front variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_6_1_front_ref(&self)
pub fn unwrap_ch_6_1_front_ref(&self)
Unwraps this reference to the ChannelLayout::Ch6_1Front variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_6_1_front_mut(&mut self)
pub fn unwrap_ch_6_1_front_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch6_1Front variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_7_0(self)
pub fn unwrap_ch_7_0(self)
Unwraps this value to the ChannelLayout::Ch7_0 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_7_0_ref(&self)
pub fn unwrap_ch_7_0_ref(&self)
Unwraps this reference to the ChannelLayout::Ch7_0 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_7_0_mut(&mut self)
pub fn unwrap_ch_7_0_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch7_0 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_7_0_front(self)
pub fn unwrap_ch_7_0_front(self)
Unwraps this value to the ChannelLayout::Ch7_0Front variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_7_0_front_ref(&self)
pub fn unwrap_ch_7_0_front_ref(&self)
Unwraps this reference to the ChannelLayout::Ch7_0Front variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_7_0_front_mut(&mut self)
pub fn unwrap_ch_7_0_front_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch7_0Front variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_7_1(self)
pub fn unwrap_ch_7_1(self)
Unwraps this value to the ChannelLayout::Ch7_1 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_7_1_ref(&self)
pub fn unwrap_ch_7_1_ref(&self)
Unwraps this reference to the ChannelLayout::Ch7_1 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_7_1_mut(&mut self)
pub fn unwrap_ch_7_1_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch7_1 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_7_1_wide(self)
pub fn unwrap_ch_7_1_wide(self)
Unwraps this value to the ChannelLayout::Ch7_1Wide variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_7_1_wide_ref(&self)
pub fn unwrap_ch_7_1_wide_ref(&self)
Unwraps this reference to the ChannelLayout::Ch7_1Wide variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_7_1_wide_mut(&mut self)
pub fn unwrap_ch_7_1_wide_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch7_1Wide variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_7_1_wide_back(self)
pub fn unwrap_ch_7_1_wide_back(self)
Unwraps this value to the ChannelLayout::Ch7_1WideBack variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_7_1_wide_back_ref(&self)
pub fn unwrap_ch_7_1_wide_back_ref(&self)
Unwraps this reference to the ChannelLayout::Ch7_1WideBack variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_7_1_wide_back_mut(&mut self)
pub fn unwrap_ch_7_1_wide_back_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch7_1WideBack variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_7_1_2(self)
pub fn unwrap_ch_7_1_2(self)
Unwraps this value to the ChannelLayout::Ch7_1_2 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_7_1_2_ref(&self)
pub fn unwrap_ch_7_1_2_ref(&self)
Unwraps this reference to the ChannelLayout::Ch7_1_2 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_7_1_2_mut(&mut self)
pub fn unwrap_ch_7_1_2_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch7_1_2 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_7_1_4_back(self)
pub fn unwrap_ch_7_1_4_back(self)
Unwraps this value to the ChannelLayout::Ch7_1_4Back variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_7_1_4_back_ref(&self)
pub fn unwrap_ch_7_1_4_back_ref(&self)
Unwraps this reference to the ChannelLayout::Ch7_1_4Back variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_7_1_4_back_mut(&mut self)
pub fn unwrap_ch_7_1_4_back_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch7_1_4Back variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_7_2_3(self)
pub fn unwrap_ch_7_2_3(self)
Unwraps this value to the ChannelLayout::Ch7_2_3 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_7_2_3_ref(&self)
pub fn unwrap_ch_7_2_3_ref(&self)
Unwraps this reference to the ChannelLayout::Ch7_2_3 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_7_2_3_mut(&mut self)
pub fn unwrap_ch_7_2_3_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch7_2_3 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_9_1_4_back(self)
pub fn unwrap_ch_9_1_4_back(self)
Unwraps this value to the ChannelLayout::Ch9_1_4Back variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_9_1_4_back_ref(&self)
pub fn unwrap_ch_9_1_4_back_ref(&self)
Unwraps this reference to the ChannelLayout::Ch9_1_4Back variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_9_1_4_back_mut(&mut self)
pub fn unwrap_ch_9_1_4_back_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch9_1_4Back variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_9_1_6(self)
pub fn unwrap_ch_9_1_6(self)
Unwraps this value to the ChannelLayout::Ch9_1_6 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_9_1_6_ref(&self)
pub fn unwrap_ch_9_1_6_ref(&self)
Unwraps this reference to the ChannelLayout::Ch9_1_6 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_9_1_6_mut(&mut self)
pub fn unwrap_ch_9_1_6_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch9_1_6 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_22_2(self)
pub fn unwrap_ch_22_2(self)
Unwraps this value to the ChannelLayout::Ch22_2 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_22_2_ref(&self)
pub fn unwrap_ch_22_2_ref(&self)
Unwraps this reference to the ChannelLayout::Ch22_2 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ch_22_2_mut(&mut self)
pub fn unwrap_ch_22_2_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ch22_2 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_hexagonal(self)
pub fn unwrap_hexagonal(self)
Unwraps this value to the ChannelLayout::Hexagonal variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_hexagonal_ref(&self)
pub fn unwrap_hexagonal_ref(&self)
Unwraps this reference to the ChannelLayout::Hexagonal variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_hexagonal_mut(&mut self)
pub fn unwrap_hexagonal_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Hexagonal variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_octagonal(self)
pub fn unwrap_octagonal(self)
Unwraps this value to the ChannelLayout::Octagonal variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_octagonal_ref(&self)
pub fn unwrap_octagonal_ref(&self)
Unwraps this reference to the ChannelLayout::Octagonal variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_octagonal_mut(&mut self)
pub fn unwrap_octagonal_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Octagonal variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_hexadecagonal(self)
pub fn unwrap_hexadecagonal(self)
Unwraps this value to the ChannelLayout::Hexadecagonal variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_hexadecagonal_ref(&self)
pub fn unwrap_hexadecagonal_ref(&self)
Unwraps this reference to the ChannelLayout::Hexadecagonal variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_hexadecagonal_mut(&mut self)
pub fn unwrap_hexadecagonal_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Hexadecagonal variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_cube(self)
pub fn unwrap_cube(self)
Unwraps this value to the ChannelLayout::Cube variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_cube_ref(&self)
pub fn unwrap_cube_ref(&self)
Unwraps this reference to the ChannelLayout::Cube variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_cube_mut(&mut self)
pub fn unwrap_cube_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Cube variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ambisonic_1(self)
pub fn unwrap_ambisonic_1(self)
Unwraps this value to the ChannelLayout::Ambisonic1 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ambisonic_1_ref(&self)
pub fn unwrap_ambisonic_1_ref(&self)
Unwraps this reference to the ChannelLayout::Ambisonic1 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ambisonic_1_mut(&mut self)
pub fn unwrap_ambisonic_1_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ambisonic1 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ambisonic_2(self)
pub fn unwrap_ambisonic_2(self)
Unwraps this value to the ChannelLayout::Ambisonic2 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ambisonic_2_ref(&self)
pub fn unwrap_ambisonic_2_ref(&self)
Unwraps this reference to the ChannelLayout::Ambisonic2 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ambisonic_2_mut(&mut self)
pub fn unwrap_ambisonic_2_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ambisonic2 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ambisonic_3(self)
pub fn unwrap_ambisonic_3(self)
Unwraps this value to the ChannelLayout::Ambisonic3 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ambisonic_3_ref(&self)
pub fn unwrap_ambisonic_3_ref(&self)
Unwraps this reference to the ChannelLayout::Ambisonic3 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ambisonic_3_mut(&mut self)
pub fn unwrap_ambisonic_3_mut(&mut self)
Unwraps this mutable reference to the ChannelLayout::Ambisonic3 variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_other(self) -> SmolStr
pub fn unwrap_other(self) -> SmolStr
Unwraps this value to the ChannelLayout::Other variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_other_ref(&self) -> &SmolStr
pub fn unwrap_other_ref(&self) -> &SmolStr
Unwraps this reference to the ChannelLayout::Other variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_other_mut(&mut self) -> &mut SmolStr
pub fn unwrap_other_mut(&mut self) -> &mut SmolStr
Unwraps this mutable reference to the ChannelLayout::Other variant.
Panics if this value is of any other type.
Source§impl ChannelLayout
impl ChannelLayout
Sourcepub fn try_unwrap_mono(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_mono(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Mono variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_mono_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_mono_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Mono variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_mono_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_mono_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Mono variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_stereo(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_stereo(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Stereo variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_stereo_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_stereo_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Stereo variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_stereo_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_stereo_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Stereo variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_stereo_downmix(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_stereo_downmix(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::StereoDownmix variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_stereo_downmix_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_stereo_downmix_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::StereoDownmix variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_stereo_downmix_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_stereo_downmix_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::StereoDownmix variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_binaural(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_binaural(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Binaural variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_binaural_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_binaural_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Binaural variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_binaural_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_binaural_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Binaural variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_2_1(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_2_1(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch2_1 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_2_1_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_2_1_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch2_1 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_2_1_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_2_1_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch2_1 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_3_0(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_3_0(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch3_0 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_3_0_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_3_0_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch3_0 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_3_0_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_3_0_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch3_0 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_3_0_back(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_3_0_back(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch3_0Back variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_3_0_back_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_3_0_back_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch3_0Back variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_3_0_back_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_3_0_back_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch3_0Back variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_3_1(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_3_1(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch3_1 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_3_1_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_3_1_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch3_1 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_3_1_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_3_1_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch3_1 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_3_1_2(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_3_1_2(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch3_1_2 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_3_1_2_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_3_1_2_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch3_1_2 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_3_1_2_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_3_1_2_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch3_1_2 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_4_0(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_4_0(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch4_0 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_4_0_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_4_0_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch4_0 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_4_0_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_4_0_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch4_0 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_4_1(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_4_1(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch4_1 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_4_1_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_4_1_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch4_1 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_4_1_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_4_1_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch4_1 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_quad(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_quad(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Quad variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_quad_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_quad_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Quad variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_quad_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_quad_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Quad variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_quad_side(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_quad_side(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::QuadSide variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_quad_side_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_quad_side_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::QuadSide variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_quad_side_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_quad_side_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::QuadSide variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_5_0(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_5_0(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch5_0 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_5_0_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_5_0_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch5_0 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_5_0_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_5_0_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch5_0 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_5_0_back(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_5_0_back(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch5_0Back variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_5_0_back_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_5_0_back_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch5_0Back variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_5_0_back_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_5_0_back_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch5_0Back variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_5_1(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_5_1(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch5_1 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_5_1_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_5_1_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch5_1 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_5_1_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_5_1_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch5_1 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_5_1_back(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_5_1_back(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch5_1Back variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_5_1_back_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_5_1_back_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch5_1Back variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_5_1_back_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_5_1_back_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch5_1Back variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_5_1_2(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_5_1_2(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch5_1_2 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_5_1_2_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_5_1_2_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch5_1_2 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_5_1_2_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_5_1_2_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch5_1_2 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_5_1_2_back(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_5_1_2_back(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch5_1_2Back variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_5_1_2_back_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_5_1_2_back_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch5_1_2Back variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_5_1_2_back_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_5_1_2_back_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch5_1_2Back variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_5_1_4_back(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_5_1_4_back(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch5_1_4Back variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_5_1_4_back_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_5_1_4_back_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch5_1_4Back variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_5_1_4_back_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_5_1_4_back_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch5_1_4Back variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_6_0(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_6_0(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch6_0 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_6_0_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_6_0_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch6_0 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_6_0_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_6_0_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch6_0 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_6_0_front(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_6_0_front(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch6_0Front variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_6_0_front_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_6_0_front_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch6_0Front variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_6_0_front_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_6_0_front_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch6_0Front variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_6_1(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_6_1(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch6_1 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_6_1_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_6_1_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch6_1 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_6_1_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_6_1_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch6_1 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_6_1_back(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_6_1_back(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch6_1Back variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_6_1_back_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_6_1_back_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch6_1Back variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_6_1_back_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_6_1_back_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch6_1Back variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_6_1_front(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_6_1_front(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch6_1Front variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_6_1_front_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_6_1_front_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch6_1Front variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_6_1_front_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_6_1_front_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch6_1Front variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_7_0(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_7_0(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch7_0 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_7_0_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_7_0_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch7_0 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_7_0_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_7_0_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch7_0 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_7_0_front(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_7_0_front(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch7_0Front variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_7_0_front_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_7_0_front_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch7_0Front variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_7_0_front_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_7_0_front_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch7_0Front variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_7_1(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_7_1(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch7_1 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_7_1_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_7_1_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch7_1 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_7_1_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_7_1_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch7_1 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_7_1_wide(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_7_1_wide(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch7_1Wide variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_7_1_wide_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_7_1_wide_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch7_1Wide variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_7_1_wide_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_7_1_wide_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch7_1Wide variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_7_1_wide_back(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_7_1_wide_back(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch7_1WideBack variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_7_1_wide_back_ref(
&self,
) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_7_1_wide_back_ref( &self, ) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch7_1WideBack variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_7_1_wide_back_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_7_1_wide_back_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch7_1WideBack variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_7_1_2(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_7_1_2(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch7_1_2 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_7_1_2_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_7_1_2_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch7_1_2 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_7_1_2_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_7_1_2_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch7_1_2 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_7_1_4_back(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_7_1_4_back(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch7_1_4Back variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_7_1_4_back_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_7_1_4_back_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch7_1_4Back variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_7_1_4_back_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_7_1_4_back_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch7_1_4Back variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_7_2_3(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_7_2_3(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch7_2_3 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_7_2_3_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_7_2_3_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch7_2_3 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_7_2_3_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_7_2_3_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch7_2_3 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_9_1_4_back(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_9_1_4_back(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch9_1_4Back variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_9_1_4_back_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_9_1_4_back_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch9_1_4Back variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_9_1_4_back_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_9_1_4_back_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch9_1_4Back variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_9_1_6(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_9_1_6(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch9_1_6 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_9_1_6_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_9_1_6_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch9_1_6 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_9_1_6_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_9_1_6_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch9_1_6 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_22_2(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ch_22_2(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ch22_2 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_22_2_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ch_22_2_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ch22_2 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ch_22_2_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ch_22_2_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ch22_2 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_hexagonal(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_hexagonal(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Hexagonal variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_hexagonal_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_hexagonal_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Hexagonal variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_hexagonal_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_hexagonal_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Hexagonal variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_octagonal(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_octagonal(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Octagonal variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_octagonal_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_octagonal_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Octagonal variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_octagonal_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_octagonal_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Octagonal variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_hexadecagonal(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_hexadecagonal(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Hexadecagonal variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_hexadecagonal_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_hexadecagonal_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Hexadecagonal variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_hexadecagonal_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_hexadecagonal_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Hexadecagonal variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_cube(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_cube(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Cube variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_cube_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_cube_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Cube variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_cube_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_cube_mut(&mut self) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Cube variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ambisonic_1(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ambisonic_1(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ambisonic1 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ambisonic_1_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ambisonic_1_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ambisonic1 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ambisonic_1_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ambisonic_1_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ambisonic1 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ambisonic_2(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ambisonic_2(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ambisonic2 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ambisonic_2_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ambisonic_2_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ambisonic2 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ambisonic_2_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ambisonic_2_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ambisonic2 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ambisonic_3(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_ambisonic_3(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Ambisonic3 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ambisonic_3_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_ambisonic_3_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Ambisonic3 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ambisonic_3_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_ambisonic_3_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Ambisonic3 variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_other(self) -> Result<SmolStr, TryUnwrapError<Self>>
pub fn try_unwrap_other(self) -> Result<SmolStr, TryUnwrapError<Self>>
Attempts to unwrap this value to the ChannelLayout::Other variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_other_ref(&self) -> Result<&SmolStr, TryUnwrapError<&Self>>
pub fn try_unwrap_other_ref(&self) -> Result<&SmolStr, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ChannelLayout::Other variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_other_mut(
&mut self,
) -> Result<&mut SmolStr, TryUnwrapError<&mut Self>>
pub fn try_unwrap_other_mut( &mut self, ) -> Result<&mut SmolStr, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ChannelLayout::Other variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Source§impl ChannelLayout
impl ChannelLayout
Sourcepub fn as_str(&self) -> &str
pub fn as_str(&self) -> &str
FFmpeg-canonical layout slug (e.g. "mono", "stereo",
"5.1", "7.1"). Self::Other returns the wrapped string
verbatim.
Sourcepub fn other(slug: impl AsRef<str>) -> Self
pub fn other(slug: impl AsRef<str>) -> Self
The open escape for a slug this vocabulary does not name, ASCII-folded to the crate’s lowercase canon.
The one construction path for Self::Other: folding here is what
keeps the whole value space lowercase-canonical, so the derived Eq /
Hash compare names rather than spellings. Constructing the variant
directly bypasses the fold and is not the supported spelling.
Source§impl ChannelLayout
impl ChannelLayout
Sourcepub const ROSTER: &'static [Self]
pub const ROSTER: &'static [Self]
Every channel layout this vocabulary names, in declaration order.
A slice rather than an array: how many names this build carries is a fact about the release, not part of the type, so a later addition stays a minor change.
The open escape arm is not a member. The roster answers “which names does this build know”, and the escape is precisely the arm that carries a name it does not — listing it would need a slug to put in it, and there isn’t one.
Trait Implementations§
Source§impl Arbitrary for ChannelLayout
impl Arbitrary for ChannelLayout
Source§impl<'a> Arbitrary<'a> for ChannelLayout
Available on crate feature arbitrary only.
impl<'a> Arbitrary<'a> for ChannelLayout
arbitrary only.Source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Unstructured this type
needs to construct itself. Read moreSource§impl Clone for ChannelLayout
impl Clone for ChannelLayout
Source§fn clone(&self) -> ChannelLayout
fn clone(&self) -> ChannelLayout
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ChannelLayout
impl Debug for ChannelLayout
Source§impl Default for ChannelLayout
impl Default for ChannelLayout
Source§fn default() -> Self
fn default() -> Self
Other("") — the wire-zero / “absent” sentinel. There is no
universally-defensible default channel layout (mono vs stereo
is context-dependent); the empty-string Other mirrors the
buffa-compatible “absent” state. Callers picking a meaningful
fallback should be explicit (ChannelLayout::Stereo is the
common one).
Source§impl DefaultInstance for ChannelLayout
Available on crate feature buffa only.
impl DefaultInstance for ChannelLayout
buffa only.Source§fn default_instance() -> &'static Self
fn default_instance() -> &'static Self
Source§impl<'de> Deserialize<'de> for ChannelLayout
Available on crate feature serde only.
impl<'de> Deserialize<'de> for ChannelLayout
serde only.Source§fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
Source§impl Display for ChannelLayout
impl Display for ChannelLayout
impl Eq for ChannelLayout
Source§impl FromStr for ChannelLayout
impl FromStr for ChannelLayout
Source§impl Hash for ChannelLayout
impl Hash for ChannelLayout
Source§impl Message for ChannelLayout
Available on crate feature buffa only.
impl Message for ChannelLayout
buffa only.Source§fn compute_size(&self, _cache: &mut SizeCache) -> u32
fn compute_size(&self, _cache: &mut SizeCache) -> u32
cache for write_to to consume. Read moreSource§fn write_to(&self, _cache: &mut SizeCache, buf: &mut impl EncodeSink)
fn write_to(&self, _cache: &mut SizeCache, buf: &mut impl EncodeSink)
cache (populated by a prior
compute_size call on the same cache). Read moreSource§fn merge_field(
&mut self,
tag: Tag,
buf: &mut impl Buf,
ctx: DecodeContext<'_>,
) -> Result<(), DecodeError>
fn merge_field( &mut self, tag: Tag, buf: &mut impl Buf, ctx: DecodeContext<'_>, ) -> Result<(), DecodeError>
buf. Read moreSource§fn encode(&self, buf: &mut impl EncodeSink)
fn encode(&self, buf: &mut impl EncodeSink)
Source§fn try_encode(&self, buf: &mut impl EncodeSink) -> Result<(), EncodeError>
fn try_encode(&self, buf: &mut impl EncodeSink) -> Result<(), EncodeError>
MAX_MESSAGE_BYTES). Read moreSource§fn encode_with_cache(&self, cache: &mut SizeCache, buf: &mut impl EncodeSink)
fn encode_with_cache(&self, cache: &mut SizeCache, buf: &mut impl EncodeSink)
Source§fn try_encode_with_cache(
&self,
cache: &mut SizeCache,
buf: &mut impl EncodeSink,
) -> Result<(), EncodeError>
fn try_encode_with_cache( &self, cache: &mut SizeCache, buf: &mut impl EncodeSink, ) -> Result<(), EncodeError>
SizeCache,
returning an error instead of panicking if the encoded size exceeds
the 2 GiB protobuf limit (MAX_MESSAGE_BYTES). Clears the cache
first. Read moreSource§fn try_encode_bounded(
&self,
max_bytes: u32,
buf: &mut impl EncodeSink,
) -> Result<u32, EncodeError>
fn try_encode_bounded( &self, max_bytes: u32, buf: &mut impl EncodeSink, ) -> Result<u32, EncodeError>
buf only if its encoded size fits within
max_bytes, using a single size pass that is then reused for the write. Read moreSource§fn try_encode_bounded_with_cache(
&self,
max_bytes: u32,
cache: &mut SizeCache,
buf: &mut impl EncodeSink,
) -> Result<u32, EncodeError>
fn try_encode_bounded_with_cache( &self, max_bytes: u32, cache: &mut SizeCache, buf: &mut impl EncodeSink, ) -> Result<u32, EncodeError>
Source§fn encoded_len(&self) -> u32
fn encoded_len(&self) -> u32
Source§fn try_encoded_len(&self) -> Result<u32, EncodeError>
fn try_encoded_len(&self) -> Result<u32, EncodeError>
MAX_MESSAGE_BYTES). Read moreSource§fn encode_length_delimited(&self, buf: &mut impl EncodeSink)
fn encode_length_delimited(&self, buf: &mut impl EncodeSink)
Source§fn try_encode_length_delimited(
&self,
buf: &mut impl EncodeSink,
) -> Result<(), EncodeError>
fn try_encode_length_delimited( &self, buf: &mut impl EncodeSink, ) -> Result<(), EncodeError>
MAX_MESSAGE_BYTES). Read moreSource§fn try_encode_to_vec(&self) -> Result<Vec<u8>, EncodeError>
fn try_encode_to_vec(&self) -> Result<Vec<u8>, EncodeError>
Vec<u8>, returning an error instead of panicking
if the encoded size exceeds the 2 GiB protobuf limit
(MAX_MESSAGE_BYTES). Read moreSource§fn encode_to_bytes(&self) -> Bytes
fn encode_to_bytes(&self) -> Bytes
bytes::Bytes. Read moreSource§fn try_encode_to_bytes(&self) -> Result<Bytes, EncodeError>
fn try_encode_to_bytes(&self) -> Result<Bytes, EncodeError>
bytes::Bytes, returning an error instead of
panicking if the encoded size exceeds the 2 GiB protobuf limit
(MAX_MESSAGE_BYTES). Read moreSource§fn decode(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
fn decode(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
Source§fn decode_from_slice(data: &[u8]) -> Result<Self, DecodeError>where
Self: Sized,
fn decode_from_slice(data: &[u8]) -> Result<Self, DecodeError>where
Self: Sized,
Source§fn decode_length_delimited(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
fn decode_length_delimited(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
Source§fn merge_to_limit(
&mut self,
buf: &mut impl Buf,
ctx: DecodeContext<'_>,
limit: usize,
) -> Result<(), DecodeError>
fn merge_to_limit( &mut self, buf: &mut impl Buf, ctx: DecodeContext<'_>, limit: usize, ) -> Result<(), DecodeError>
Source§fn merge_group(
&mut self,
buf: &mut impl Buf,
ctx: DecodeContext<'_>,
field_number: u32,
) -> Result<(), DecodeError>
fn merge_group( &mut self, buf: &mut impl Buf, ctx: DecodeContext<'_>, field_number: u32, ) -> Result<(), DecodeError>
buf, reading fields until an
EndGroup tag with the given field_number is encountered. Read moreSource§fn merge(
&mut self,
buf: &mut impl Buf,
ctx: DecodeContext<'_>,
) -> Result<(), DecodeError>
fn merge( &mut self, buf: &mut impl Buf, ctx: DecodeContext<'_>, ) -> Result<(), DecodeError>
Source§fn merge_from_slice(&mut self, data: &[u8]) -> Result<(), DecodeError>
fn merge_from_slice(&mut self, data: &[u8]) -> Result<(), DecodeError>
Source§fn merge_length_delimited(
&mut self,
buf: &mut impl Buf,
ctx: DecodeContext<'_>,
) -> Result<(), DecodeError>
fn merge_length_delimited( &mut self, buf: &mut impl Buf, ctx: DecodeContext<'_>, ) -> Result<(), DecodeError>
Source§impl PartialEq for ChannelLayout
impl PartialEq for ChannelLayout
Source§impl Serialize for ChannelLayout
Available on crate feature serde only.
impl Serialize for ChannelLayout
serde only.