#[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

FrontLeft

Apple, Dolby call this ‘Left’

FrontRight

Apple, Dolby call this ‘Right’

FrontCenter

Apple, Dolby call this ‘Center’

RearCenter

Microsoft calls this ‘Back Center’, Apple calls this ‘Center Surround’, Dolby calls this ‘Surround Rear Center’

RearLeft

Microsoft calls this ‘Back Left’, Apple calls this ‘Left Surround’, Dolby calls this ‘Surround Rear Left’

RearRight

Microsoft calls this ‘Back Right’, Apple calls this ‘Right Surround’, Dolby calls this ‘Surround Rear Right’

Lfe

Aka subwoofer. Microsoft calls this ‘Low Frequency’, Apple calls this ‘LFEScreen’

FrontLeftOfCenter

Apple, Dolby call this ‘Left Center’

FrontRightOfCenter

Apple, Dolby call this ‘Right Center’

SideLeft

Apple calls this ‘Left Surround Direct’, Dolby calls this ‘Surround Left’

SideRight

Apple calls this ‘Right Surround Direct’, Dolby calls this ‘Surround Right’

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

Apple calls this ‘Top Center Surround’

TopFrontLeft

Apple calls this ‘Vertical Height Left’

TopFrontRight

Apple calls this ‘Vertical Height Right’

TopFrontCenter

Apple calls this ‘Vertical Height Center’

TopRearLeft

Microsoft and Apple call this ‘Top Back Left’

TopRearRight

Microsoft and Apple call this ‘Top Back Right’

TopRearCenter

Microsoft and Apple call this ‘Top Back Center’

Implementations

Makes a bit mask from a channel position.

Return a text label for the specified channel position

Return a human readable text label for the specified channel position.

The inverse of to_string.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Converts to this type from the input type.
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.