#[repr(transparent)]pub struct AudioChannel(pub u8);
Expand description
Channel mappings enum
See https://en.wikipedia.org/wiki/Surround_sound#Standard_speaker_channels and https://en.wikipedia.org/wiki/22.2_surround_sound for more information.
Tuple Fields§
§0: u8
Implementations§
Source§impl AudioChannel
impl AudioChannel
Sourcepub const FrontRight: Self
pub const FrontRight: Self
Front right
Sourcepub const FrontCenter: Self
pub const FrontCenter: Self
Front center
Sourcepub const LowFrequency1: Self
pub const LowFrequency1: Self
Low frequency
Sourcepub const FrontLeftCenter: Self
pub const FrontLeftCenter: Self
Front left of center
Sourcepub const FrontRightCenter: Self
pub const FrontRightCenter: Self
Front right of center
Sourcepub const BackCenter: Self
pub const BackCenter: Self
Back center
Sourcepub const TopFrontLeft: Self
pub const TopFrontLeft: Self
Front left height
Sourcepub const TopFrontCenter: Self
pub const TopFrontCenter: Self
Front center height
Sourcepub const TopFrontRight: Self
pub const TopFrontRight: Self
Front right height
Sourcepub const TopBackLeft: Self
pub const TopBackLeft: Self
Rear left height
Sourcepub const TopBackCenter: Self
pub const TopBackCenter: Self
Rear center height
Sourcepub const TopBackRight: Self
pub const TopBackRight: Self
Rear right height
Sourcepub const LowFrequency2: Self
pub const LowFrequency2: Self
Low frequency 2
Sourcepub const TopSideLeft: Self
pub const TopSideLeft: Self
Top side left
Sourcepub const TopSideRight: Self
pub const TopSideRight: Self
Top side right
Sourcepub const BottomFrontCenter: Self
pub const BottomFrontCenter: Self
Bottom front center
Sourcepub const BottomFrontLeft: Self
pub const BottomFrontLeft: Self
Bottom front left
Sourcepub const BottomFrontRight: Self
pub const BottomFrontRight: Self
Bottom front right
Trait Implementations§
Source§impl Clone for AudioChannel
impl Clone for AudioChannel
Source§fn clone(&self) -> AudioChannel
fn clone(&self) -> AudioChannel
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AudioChannel
impl Debug for AudioChannel
Source§impl From<AudioChannel> for u8
impl From<AudioChannel> for u8
Source§fn from(value: AudioChannel) -> Self
fn from(value: AudioChannel) -> Self
Converts to this type from the input type.
Source§impl From<u8> for AudioChannel
impl From<u8> for AudioChannel
Source§impl Hash for AudioChannel
impl Hash for AudioChannel
Source§impl Ord for AudioChannel
impl Ord for AudioChannel
Source§fn cmp(&self, other: &AudioChannel) -> Ordering
fn cmp(&self, other: &AudioChannel) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AudioChannel
impl PartialEq for AudioChannel
Source§impl PartialOrd for AudioChannel
impl PartialOrd for AudioChannel
impl Copy for AudioChannel
impl Eq for AudioChannel
impl StructuralPartialEq for AudioChannel
Auto Trait Implementations§
impl Freeze for AudioChannel
impl RefUnwindSafe for AudioChannel
impl Send for AudioChannel
impl Sync for AudioChannel
impl Unpin for AudioChannel
impl UnwindSafe for AudioChannel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more