Enum alsa::mixer::SelemChannelId
source · pub enum SelemChannelId {
Unknown = -1,
FrontLeft = 0,
FrontRight = 1,
RearLeft = 2,
RearRight = 3,
FrontCenter = 4,
Woofer = 5,
SideLeft = 6,
SideRight = 7,
RearCenter = 8,
Last = 31,
}
Expand description
Wrapper for SND_MIXER_SCHN_* constants
Variants§
Unknown = -1
FrontLeft = 0
FrontRight = 1
RearLeft = 2
RearRight = 3
FrontCenter = 4
Woofer = 5
SideLeft = 6
SideRight = 7
RearCenter = 8
Last = 31
Implementations§
source§impl SelemChannelId
impl SelemChannelId
sourcepub fn all() -> &'static [SelemChannelId]
pub fn all() -> &'static [SelemChannelId]
Returns a slice of all possible values; useful for iteration
source§impl SelemChannelId
impl SelemChannelId
pub fn mono() -> SelemChannelId
Trait Implementations§
source§impl Clone for SelemChannelId
impl Clone for SelemChannelId
source§fn clone(&self) -> SelemChannelId
fn clone(&self) -> SelemChannelId
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 SelemChannelId
impl Debug for SelemChannelId
source§impl Display for SelemChannelId
impl Display for SelemChannelId
source§impl Hash for SelemChannelId
impl Hash for SelemChannelId
source§impl Ord for SelemChannelId
impl Ord for SelemChannelId
source§fn cmp(&self, other: &SelemChannelId) -> Ordering
fn cmp(&self, other: &SelemChannelId) -> 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 SelemChannelId
impl PartialEq for SelemChannelId
source§fn eq(&self, other: &SelemChannelId) -> bool
fn eq(&self, other: &SelemChannelId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SelemChannelId
impl PartialOrd for SelemChannelId
source§fn partial_cmp(&self, other: &SelemChannelId) -> Option<Ordering>
fn partial_cmp(&self, other: &SelemChannelId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SelemChannelId
impl Eq for SelemChannelId
impl StructuralEq for SelemChannelId
impl StructuralPartialEq for SelemChannelId
Auto Trait Implementations§
impl RefUnwindSafe for SelemChannelId
impl Send for SelemChannelId
impl Sync for SelemChannelId
impl Unpin for SelemChannelId
impl UnwindSafe for SelemChannelId
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