Skip to main content

ChannelLayout

Enum ChannelLayout 

Source
#[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),
}
Available on crate features 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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

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

Source

pub const fn is_mono(&self) -> bool

Returns true if this value is of type Mono. Returns false otherwise

Source

pub const fn is_stereo(&self) -> bool

Returns true if this value is of type Stereo. Returns false otherwise

Source

pub const fn is_stereo_downmix(&self) -> bool

Returns true if this value is of type StereoDownmix. Returns false otherwise

Source

pub const fn is_binaural(&self) -> bool

Returns true if this value is of type Binaural. Returns false otherwise

Source

pub const fn is_ch_2_1(&self) -> bool

Returns true if this value is of type Ch2_1. Returns false otherwise

Source

pub const fn is_ch_3_0(&self) -> bool

Returns true if this value is of type Ch3_0. Returns false otherwise

Source

pub const fn is_ch_3_0_back(&self) -> bool

Returns true if this value is of type Ch3_0Back. Returns false otherwise

Source

pub const fn is_ch_3_1(&self) -> bool

Returns true if this value is of type Ch3_1. Returns false otherwise

Source

pub const fn is_ch_3_1_2(&self) -> bool

Returns true if this value is of type Ch3_1_2. Returns false otherwise

Source

pub const fn is_ch_4_0(&self) -> bool

Returns true if this value is of type Ch4_0. Returns false otherwise

Source

pub const fn is_ch_4_1(&self) -> bool

Returns true if this value is of type Ch4_1. Returns false otherwise

Source

pub const fn is_quad(&self) -> bool

Returns true if this value is of type Quad. Returns false otherwise

Source

pub const fn is_quad_side(&self) -> bool

Returns true if this value is of type QuadSide. Returns false otherwise

Source

pub const fn is_ch_5_0(&self) -> bool

Returns true if this value is of type Ch5_0. Returns false otherwise

Source

pub const fn is_ch_5_0_back(&self) -> bool

Returns true if this value is of type Ch5_0Back. Returns false otherwise

Source

pub const fn is_ch_5_1(&self) -> bool

Returns true if this value is of type Ch5_1. Returns false otherwise

Source

pub const fn is_ch_5_1_back(&self) -> bool

Returns true if this value is of type Ch5_1Back. Returns false otherwise

Source

pub const fn is_ch_5_1_2(&self) -> bool

Returns true if this value is of type Ch5_1_2. Returns false otherwise

Source

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

Source

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

Source

pub const fn is_ch_6_0(&self) -> bool

Returns true if this value is of type Ch6_0. Returns false otherwise

Source

pub const fn is_ch_6_0_front(&self) -> bool

Returns true if this value is of type Ch6_0Front. Returns false otherwise

Source

pub const fn is_ch_6_1(&self) -> bool

Returns true if this value is of type Ch6_1. Returns false otherwise

Source

pub const fn is_ch_6_1_back(&self) -> bool

Returns true if this value is of type Ch6_1Back. Returns false otherwise

Source

pub const fn is_ch_6_1_front(&self) -> bool

Returns true if this value is of type Ch6_1Front. Returns false otherwise

Source

pub const fn is_ch_7_0(&self) -> bool

Returns true if this value is of type Ch7_0. Returns false otherwise

Source

pub const fn is_ch_7_0_front(&self) -> bool

Returns true if this value is of type Ch7_0Front. Returns false otherwise

Source

pub const fn is_ch_7_1(&self) -> bool

Returns true if this value is of type Ch7_1. Returns false otherwise

Source

pub const fn is_ch_7_1_wide(&self) -> bool

Returns true if this value is of type Ch7_1Wide. Returns false otherwise

Source

pub const fn is_ch_7_1_wide_back(&self) -> bool

Returns true if this value is of type Ch7_1WideBack. Returns false otherwise

Source

pub const fn is_ch_7_1_2(&self) -> bool

Returns true if this value is of type Ch7_1_2. Returns false otherwise

Source

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

Source

pub const fn is_ch_7_2_3(&self) -> bool

Returns true if this value is of type Ch7_2_3. Returns false otherwise

Source

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

Source

pub const fn is_ch_9_1_6(&self) -> bool

Returns true if this value is of type Ch9_1_6. Returns false otherwise

Source

pub const fn is_ch_22_2(&self) -> bool

Returns true if this value is of type Ch22_2. Returns false otherwise

Source

pub const fn is_hexagonal(&self) -> bool

Returns true if this value is of type Hexagonal. Returns false otherwise

Source

pub const fn is_octagonal(&self) -> bool

Returns true if this value is of type Octagonal. Returns false otherwise

Source

pub const fn is_hexadecagonal(&self) -> bool

Returns true if this value is of type Hexadecagonal. Returns false otherwise

Source

pub const fn is_cube(&self) -> bool

Returns true if this value is of type Cube. Returns false otherwise

Source

pub const fn is_ambisonic_1(&self) -> bool

Returns true if this value is of type Ambisonic1. Returns false otherwise

Source

pub const fn is_ambisonic_2(&self) -> bool

Returns true if this value is of type Ambisonic2. Returns false otherwise

Source

pub const fn is_ambisonic_3(&self) -> bool

Returns true if this value is of type Ambisonic3. Returns false otherwise

Source

pub const fn is_other(&self) -> bool

Returns true if this value is of type Other. Returns false otherwise

Source§

impl ChannelLayout

Source

pub fn unwrap_mono(self)

Unwraps this value to the ChannelLayout::Mono variant. Panics if this value is of any other type.

Source

pub fn unwrap_mono_ref(&self)

Unwraps this reference to the ChannelLayout::Mono variant. Panics if this value is of any other type.

Source

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.

Source

pub fn unwrap_stereo(self)

Unwraps this value to the ChannelLayout::Stereo variant. Panics if this value is of any other type.

Source

pub fn unwrap_stereo_ref(&self)

Unwraps this reference to the ChannelLayout::Stereo variant. Panics if this value is of any other type.

Source

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.

Source

pub fn unwrap_stereo_downmix(self)

Unwraps this value to the ChannelLayout::StereoDownmix variant. Panics if this value is of any other type.

Source

pub fn unwrap_stereo_downmix_ref(&self)

Unwraps this reference to the ChannelLayout::StereoDownmix variant. Panics if this value is of any other type.

Source

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.

Source

pub fn unwrap_binaural(self)

Unwraps this value to the ChannelLayout::Binaural variant. Panics if this value is of any other type.

Source

pub fn unwrap_binaural_ref(&self)

Unwraps this reference to the ChannelLayout::Binaural variant. Panics if this value is of any other type.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

pub fn unwrap_quad(self)

Unwraps this value to the ChannelLayout::Quad variant. Panics if this value is of any other type.

Source

pub fn unwrap_quad_ref(&self)

Unwraps this reference to the ChannelLayout::Quad variant. Panics if this value is of any other type.

Source

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.

Source

pub fn unwrap_quad_side(self)

Unwraps this value to the ChannelLayout::QuadSide variant. Panics if this value is of any other type.

Source

pub fn unwrap_quad_side_ref(&self)

Unwraps this reference to the ChannelLayout::QuadSide variant. Panics if this value is of any other type.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

pub fn unwrap_hexagonal(self)

Unwraps this value to the ChannelLayout::Hexagonal variant. Panics if this value is of any other type.

Source

pub fn unwrap_hexagonal_ref(&self)

Unwraps this reference to the ChannelLayout::Hexagonal variant. Panics if this value is of any other type.

Source

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.

Source

pub fn unwrap_octagonal(self)

Unwraps this value to the ChannelLayout::Octagonal variant. Panics if this value is of any other type.

Source

pub fn unwrap_octagonal_ref(&self)

Unwraps this reference to the ChannelLayout::Octagonal variant. Panics if this value is of any other type.

Source

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.

Source

pub fn unwrap_hexadecagonal(self)

Unwraps this value to the ChannelLayout::Hexadecagonal variant. Panics if this value is of any other type.

Source

pub fn unwrap_hexadecagonal_ref(&self)

Unwraps this reference to the ChannelLayout::Hexadecagonal variant. Panics if this value is of any other type.

Source

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.

Source

pub fn unwrap_cube(self)

Unwraps this value to the ChannelLayout::Cube variant. Panics if this value is of any other type.

Source

pub fn unwrap_cube_ref(&self)

Unwraps this reference to the ChannelLayout::Cube variant. Panics if this value is of any other type.

Source

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.

Source

pub fn unwrap_ambisonic_1(self)

Unwraps this value to the ChannelLayout::Ambisonic1 variant. Panics if this value is of any other type.

Source

pub fn unwrap_ambisonic_1_ref(&self)

Unwraps this reference to the ChannelLayout::Ambisonic1 variant. Panics if this value is of any other type.

Source

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.

Source

pub fn unwrap_ambisonic_2(self)

Unwraps this value to the ChannelLayout::Ambisonic2 variant. Panics if this value is of any other type.

Source

pub fn unwrap_ambisonic_2_ref(&self)

Unwraps this reference to the ChannelLayout::Ambisonic2 variant. Panics if this value is of any other type.

Source

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.

Source

pub fn unwrap_ambisonic_3(self)

Unwraps this value to the ChannelLayout::Ambisonic3 variant. Panics if this value is of any other type.

Source

pub fn unwrap_ambisonic_3_ref(&self)

Unwraps this reference to the ChannelLayout::Ambisonic3 variant. Panics if this value is of any other type.

Source

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.

Source

pub fn unwrap_other(self) -> SmolStr

Unwraps this value to the ChannelLayout::Other variant. Panics if this value is of any other type.

Source

pub fn unwrap_other_ref(&self) -> &SmolStr

Unwraps this reference to the ChannelLayout::Other variant. Panics if this value is of any other type.

Source

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

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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

Source

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.

Source

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

Source

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

Source§

fn arbitrary(__quickcheck_g: &mut Gen) -> Self

Return an arbitrary value. Read more
Source§

fn shrink(&self) -> Box<dyn Iterator<Item = Self>>

Return an iterator of values that are smaller than itself. Read more
Source§

impl<'a> Arbitrary<'a> for ChannelLayout

Available on crate feature arbitrary only.
Source§

fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>

Generate an arbitrary value of Self from the given unstructured data. Read more
Source§

fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>

Generate an arbitrary value of Self from the entirety of the given unstructured data. Read more
Source§

fn size_hint(depth: usize) -> (usize, Option<usize>)

Get a size hint for how many bytes out of an Unstructured this type needs to construct itself. Read more
Source§

fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>

Get a size hint for how many bytes out of an Unstructured this type needs to construct itself. Read more
Source§

impl Clone for ChannelLayout

Source§

fn clone(&self) -> ChannelLayout

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ChannelLayout

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ChannelLayout

Source§

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.
Source§

fn default_instance() -> &'static Self

Return a reference to the single default instance of this type.
Source§

impl<'de> Deserialize<'de> for ChannelLayout

Available on crate feature serde only.
Source§

fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for ChannelLayout

Source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ChannelLayout

Source§

impl FromStr for ChannelLayout

Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Recognise a canonical layout slug; unknown values land in Self::Other (infallible, lossless).

Source§

type Err = Infallible

The associated error which can be returned from parsing.
Source§

impl Hash for ChannelLayout

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Message for ChannelLayout

Available on crate feature buffa only.
Source§

fn compute_size(&self, _cache: &mut SizeCache) -> u32

Compute the encoded byte size of this message, recording nested sub-message sizes in cache for write_to to consume. Read more
Source§

fn write_to(&self, _cache: &mut SizeCache, buf: &mut impl EncodeSink)

Write this message’s encoded bytes to a buffer, consuming nested-message sizes from cache (populated by a prior compute_size call on the same cache). Read more
Source§

fn merge_field( &mut self, tag: Tag, buf: &mut impl Buf, ctx: DecodeContext<'_>, ) -> Result<(), DecodeError>

Processes a single already-decoded tag and its associated field data from buf. Read more
Source§

fn clear(&mut self)

Clear all fields to their default values.
Source§

fn encode(&self, buf: &mut impl EncodeSink)

Compute size, then write. This is the primary encoding API. Read more
Source§

fn try_encode(&self, buf: &mut impl EncodeSink) -> Result<(), EncodeError>

Encode, returning an error instead of panicking if the encoded size exceeds the 2 GiB protobuf limit (MAX_MESSAGE_BYTES). Read more
Source§

fn encode_with_cache(&self, cache: &mut SizeCache, buf: &mut impl EncodeSink)

Encode using a caller-supplied SizeCache, for reuse across many encodes in a hot loop. Clears the cache first. Read more
Source§

fn try_encode_with_cache( &self, cache: &mut SizeCache, buf: &mut impl EncodeSink, ) -> Result<(), EncodeError>

Encode with a caller-supplied 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 more
Source§

fn try_encode_bounded( &self, max_bytes: u32, buf: &mut impl EncodeSink, ) -> Result<u32, EncodeError>

Encode this message into buf only if its encoded size fits within max_bytes, using a single size pass that is then reused for the write. Read more
Source§

fn try_encode_bounded_with_cache( &self, max_bytes: u32, cache: &mut SizeCache, buf: &mut impl EncodeSink, ) -> Result<u32, EncodeError>

Like try_encode_bounded but reuses an existing SizeCache, clearing it first. Read more
Source§

fn encoded_len(&self) -> u32

Compute the encoded byte size of this message. Read more
Source§

fn try_encoded_len(&self) -> Result<u32, EncodeError>

Compute the encoded byte size, returning an error instead of panicking if it exceeds the 2 GiB protobuf limit (MAX_MESSAGE_BYTES). Read more
Source§

fn encode_length_delimited(&self, buf: &mut impl EncodeSink)

Encode this message as a length-delimited byte sequence. Read more
Source§

fn try_encode_length_delimited( &self, buf: &mut impl EncodeSink, ) -> Result<(), EncodeError>

Encode as a length-delimited byte sequence, returning an error instead of panicking if the encoded size exceeds the 2 GiB protobuf limit (MAX_MESSAGE_BYTES). Read more
Source§

fn encode_to_vec(&self) -> Vec<u8>

Encode this message to a new Vec<u8>. Read more
Source§

fn try_encode_to_vec(&self) -> Result<Vec<u8>, EncodeError>

Encode to a new Vec<u8>, returning an error instead of panicking if the encoded size exceeds the 2 GiB protobuf limit (MAX_MESSAGE_BYTES). Read more
Source§

fn encode_to_bytes(&self) -> Bytes

Encode this message to a new bytes::Bytes. Read more
Source§

fn try_encode_to_bytes(&self) -> Result<Bytes, EncodeError>

Encode to a new bytes::Bytes, returning an error instead of panicking if the encoded size exceeds the 2 GiB protobuf limit (MAX_MESSAGE_BYTES). Read more
Source§

fn decode(buf: &mut impl Buf) -> Result<Self, DecodeError>
where Self: Sized,

Decode a message from a buffer.
Source§

fn decode_from_slice(data: &[u8]) -> Result<Self, DecodeError>
where Self: Sized,

Decode a message from a byte slice. Read more
Source§

fn decode_length_delimited(buf: &mut impl Buf) -> Result<Self, DecodeError>
where Self: Sized,

Decode a length-delimited message from a buffer. Read more
Source§

fn merge_to_limit( &mut self, buf: &mut impl Buf, ctx: DecodeContext<'_>, limit: usize, ) -> Result<(), DecodeError>

Merge fields from a buffer until buf.remaining() reaches limit. Read more
Source§

fn merge_group( &mut self, buf: &mut impl Buf, ctx: DecodeContext<'_>, field_number: u32, ) -> Result<(), DecodeError>

Merges a group-encoded message from buf, reading fields until an EndGroup tag with the given field_number is encountered. Read more
Source§

fn merge( &mut self, buf: &mut impl Buf, ctx: DecodeContext<'_>, ) -> Result<(), DecodeError>

Merge fields from a buffer into this message. Read more
Source§

fn merge_from_slice(&mut self, data: &[u8]) -> Result<(), DecodeError>

Merge fields from a byte slice into this message. Read more
Source§

fn merge_length_delimited( &mut self, buf: &mut impl Buf, ctx: DecodeContext<'_>, ) -> Result<(), DecodeError>

Merge fields from a length-delimited sub-message payload into this message. Read more
Source§

impl PartialEq for ChannelLayout

Source§

fn eq(&self, other: &ChannelLayout) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for ChannelLayout

Available on crate feature serde only.
Source§

fn serialize<S: Serializer>(&self, ser: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ChannelLayout

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSmolStr for T
where T: Display + ?Sized,

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.