Enum libpulse_binding::channelmap::Position [−][src]
A list of channel labels.
Note, certain aliases, specifically Left, Right, Center and Subwoofer, available in the
equivalent C enum are not provided here, since Rust does not allow aliases.
Variants
Invalid.
Mono.
Apple, Dolby call this ‘Left’.
Apple, Dolby call this ‘Right’.
Apple, Dolby call this ‘Center’.
Microsoft calls this ‘Back Center’, Apple calls this ‘Center Surround’, Dolby calls this ‘Surround Rear Center’.
Microsoft calls this ‘Back Left’, Apple calls this ‘Left Surround’, Dolby calls this ‘Surround Rear Left’.
Microsoft calls this ‘Back Right’, Apple calls this ‘Right Surround’, Dolby calls this ‘Surround Rear Right’.
Aka subwoofer. Microsoft calls this ‘Low Frequency’, Apple calls this ‘LFEScreen’.
Apple, Dolby call this ‘Left Center’.
Apple, Dolby call this ‘Right Center’.
Apple calls this ‘Left Surround Direct’, Dolby calls this ‘Surround Left’.
Apple calls this ‘Right Surround Direct’, Dolby calls this ‘Surround Right’.
Auxillary 0.
Auxillary 1.
Auxillary 2.
Auxillary 3.
Auxillary 4.
Auxillary 5.
Auxillary 6.
Auxillary 7.
Auxillary 8.
Auxillary 9.
Auxillary 10.
Auxillary 11.
Auxillary 12.
Auxillary 13.
Auxillary 14.
Auxillary 15.
Auxillary 16.
Auxillary 17.
Auxillary 18.
Auxillary 19.
Auxillary 20.
Auxillary 21.
Auxillary 22.
Auxillary 23.
Auxillary 24.
Auxillary 25.
Auxillary 26.
Auxillary 27.
Auxillary 28.
Auxillary 29.
Auxillary 30.
Auxillary 31.
Apple calls this ‘Top Center Surround’.
Apple calls this ‘Vertical Height Left’.
Apple calls this ‘Vertical Height Right’.
Apple calls this ‘Vertical Height Center’.
Microsoft and Apple call this ‘Top Back Left’.
Microsoft and Apple call this ‘Top Back Right’.
Microsoft and Apple call this ‘Top Back Center’.
Implementations
impl Position[src]
pub fn to_mask(self) -> PositionMask[src]
Makes a bit mask from a channel position.
pub fn to_string(pos: Self) -> Option<Cow<'static, str>>[src]
Gets a text label for the specified channel position.
pub fn to_pretty_string(pos: Self) -> Option<String>[src]
Gets a human readable text label for the specified channel position.
pub fn from_string(s: &str) -> Self[src]
Creates a new instance from a string representation, as given by
to_string().
Trait Implementations
impl Clone for Position[src]
impl Copy for Position[src]
impl Debug for Position[src]
impl Default for Position[src]
impl Eq for Position[src]
impl From<pa_channel_position_t> for Position[src]
fn from(p: pa_channel_position_t) -> Self[src]
impl FromPrimitive for Position[src]
fn from_i64(n: i64) -> Option<Self>[src]
fn from_u64(n: u64) -> Option<Self>[src]
pub fn from_isize(n: isize) -> Option<Self>[src]
pub fn from_i8(n: i8) -> Option<Self>[src]
pub fn from_i16(n: i16) -> Option<Self>[src]
pub fn from_i32(n: i32) -> Option<Self>[src]
pub fn from_i128(n: i128) -> Option<Self>[src]
pub fn from_usize(n: usize) -> Option<Self>[src]
pub fn from_u8(n: u8) -> Option<Self>[src]
pub fn from_u16(n: u16) -> Option<Self>[src]
pub fn from_u32(n: u32) -> Option<Self>[src]
pub fn from_u128(n: u128) -> Option<Self>[src]
pub fn from_f32(n: f32) -> Option<Self>[src]
pub fn from_f64(n: f64) -> Option<Self>[src]
impl PartialEq<Position> for Position[src]
fn eq(&self, other: &Position) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl StructuralEq for Position[src]
impl StructuralPartialEq for Position[src]
impl ToPrimitive for Position[src]
fn to_i64(&self) -> Option<i64>[src]
fn to_u64(&self) -> Option<u64>[src]
pub fn to_isize(&self) -> Option<isize>[src]
pub fn to_i8(&self) -> Option<i8>[src]
pub fn to_i16(&self) -> Option<i16>[src]
pub fn to_i32(&self) -> Option<i32>[src]
pub fn to_i128(&self) -> Option<i128>[src]
pub fn to_usize(&self) -> Option<usize>[src]
pub fn to_u8(&self) -> Option<u8>[src]
pub fn to_u16(&self) -> Option<u16>[src]
pub fn to_u32(&self) -> Option<u32>[src]
pub fn to_u128(&self) -> Option<u128>[src]
pub fn to_f32(&self) -> Option<f32>[src]
pub fn to_f64(&self) -> Option<f64>[src]
Auto Trait Implementations
impl RefUnwindSafe for Position[src]
impl Send for Position[src]
impl Sync for Position[src]
impl Unpin for Position[src]
impl UnwindSafe for Position[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,