#[repr(i32)]pub enum Channel {
Mono = 0,
FrontLeft = 1,
FrontRight = 2,
FrontCenter = 3,
RearCenter = 4,
RearLeft = 5,
RearRight = 6,
Lfe = 7,
FrontLeftOfCenter = 8,
FrontRightOfCenter = 9,
SideLeft = 10,
SideRight = 11,
}
Variants§
Mono = 0
FrontLeft = 1
FrontRight = 2
FrontCenter = 3
RearCenter = 4
RearLeft = 5
RearRight = 6
Lfe = 7
FrontLeftOfCenter = 8
FrontRightOfCenter = 9
SideLeft = 10
SideRight = 11
Implementations§
Source§impl Channel
impl Channel
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Ord for Channel
impl Ord for Channel
Source§impl PartialOrd for Channel
impl PartialOrd for Channel
impl Copy for Channel
impl Eq for Channel
impl StructuralPartialEq for Channel
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
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