#[repr(i32)]pub enum Speaker {
Show 13 variants
None = -1,
FrontLeft = 0,
FrontRight = 1,
FrontCenter = 2,
LowFrequency = 3,
SurroundLeft = 4,
SurroundRight = 5,
BackLeft = 6,
BackRight = 7,
TopFrontLeft = 8,
TopFrontRight = 9,
TopBackLeft = 10,
TopBackRight = 11,
}
Expand description
Assigns an enumeration for a speaker index.
Variants§
None = -1
No speaker.
FrontLeft = 0
The front right speaker
FrontRight = 1
The front right speaker
FrontCenter = 2
The front center speaker
LowFrequency = 3
The LFE or ‘subwoofer’ speaker
SurroundLeft = 4
The surround left (usually to the side) speaker
SurroundRight = 5
The surround right (usually to the side) speaker
BackLeft = 6
The back left speaker
BackRight = 7
The back right speaker
TopFrontLeft = 8
The top front left speaker
TopFrontRight = 9
The top front right speaker
TopBackLeft = 10
The top back left speaker
TopBackRight = 11
The top back right speaker
Trait Implementations§
Source§impl TryFromPrimitive for Speaker
impl TryFromPrimitive for Speaker
Source§impl UnsafeFromPrimitive for Speaker
impl UnsafeFromPrimitive for Speaker
type Primitive = i32
Source§unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
Transmutes into an enum from its primitive. Read more
Source§unsafe fn from_unchecked(number: Self::Primitive) -> Self
unsafe fn from_unchecked(number: Self::Primitive) -> Self
👎Deprecated since 0.6.0: Prefer to use
unchecked_transmute_from
, from_unchecked
will be removed in a future release.Transmutes into an enum from its primitive. Read more
impl Copy for Speaker
impl Eq for Speaker
impl StructuralPartialEq for Speaker
Auto Trait Implementations§
impl Freeze for Speaker
impl RefUnwindSafe for Speaker
impl Send for Speaker
impl Sync for Speaker
impl Unpin for Speaker
impl UnwindSafe for Speaker
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