Enum libpulse_binding::channelmap::Position [−][src]
#[repr(C)]
pub enum Position {
Show 52 variants
Invalid,
Mono,
FrontLeft,
FrontRight,
FrontCenter,
RearCenter,
RearLeft,
RearRight,
Lfe,
FrontLeftOfCenter,
FrontRightOfCenter,
SideLeft,
SideRight,
Aux0,
Aux1,
Aux2,
Aux3,
Aux4,
Aux5,
Aux6,
Aux7,
Aux8,
Aux9,
Aux10,
Aux11,
Aux12,
Aux13,
Aux14,
Aux15,
Aux16,
Aux17,
Aux18,
Aux19,
Aux20,
Aux21,
Aux22,
Aux23,
Aux24,
Aux25,
Aux26,
Aux27,
Aux28,
Aux29,
Aux30,
Aux31,
TopCenter,
TopFrontLeft,
TopFrontRight,
TopFrontCenter,
TopRearLeft,
TopRearRight,
TopRearCenter,
}Expand description
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
Makes a bit mask from a channel position.
Gets a text label for the specified channel position.
Gets a human readable text label for the specified channel position.
Creates a new instance from a string representation, as given by
to_string().
Trait Implementations
Performs the conversion.
Converts an i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Converts an u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Converts an isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Converts an i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Converts an i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Converts an i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Converts an i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Converts a usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Converts an u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Converts an u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Converts an u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Converts an u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Converts a f32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Converts the value of self to an i64. If the value cannot be
represented by an i64, then None is returned. Read more
Converts the value of self to a u64. If the value cannot be
represented by a u64, then None is returned. Read more
Converts the value of self to an isize. If the value cannot be
represented by an isize, then None is returned. Read more
Converts the value of self to an i8. If the value cannot be
represented by an i8, then None is returned. Read more
Converts the value of self to an i16. If the value cannot be
represented by an i16, then None is returned. Read more
Converts the value of self to an i32. If the value cannot be
represented by an i32, then None is returned. Read more
Converts the value of self to an i128. If the value cannot be
represented by an i128 (i64 under the default implementation), then
None is returned. Read more
Converts the value of self to a usize. If the value cannot be
represented by a usize, then None is returned. Read more
Converts the value of self to a u8. If the value cannot be
represented by a u8, then None is returned. Read more
Converts the value of self to a u16. If the value cannot be
represented by a u16, then None is returned. Read more
Converts the value of self to a u32. If the value cannot be
represented by a u32, then None is returned. Read more
Converts the value of self to a u128. If the value cannot be
represented by a u128 (u64 under the default implementation), then
None is returned. Read more
Converts the value of self to an f32. Overflows may map to positive
or negative inifinity, otherwise None is returned if the value cannot
be represented by an f32. Read more
Auto Trait Implementations
impl RefUnwindSafe for Position
impl UnwindSafe for Position
Blanket Implementations
Mutably borrows from an owned value. Read more