[−][src]Enum libpulse_binding::channelmap::Position
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
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’.
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’.
Methods
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 From<Position> for pa_channel_position_t
[src]
impl From<pa_channel_position_t> for Position
[src]
fn from(p: pa_channel_position_t) -> Self
[src]
impl Clone for Position
[src]
impl Copy for Position
[src]
impl Default for Position
[src]
impl Eq for Position
[src]
impl PartialEq<Position> for Position
[src]
impl Debug for Position
[src]
impl StructuralPartialEq for Position
[src]
impl StructuralEq for Position
[src]
Auto Trait Implementations
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnwindSafe for Position
impl RefUnwindSafe for Position
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,