Enum primitives::prelude::AudioChannel
source · [−]pub enum AudioChannel {
Default,
Effects,
Interface,
Music,
Custom {
value: u32,
},
}
Expand description
Can be used to separate audio space to allow different transforms to apply to different groups of playing sounds.
Can be extended with Custom by using concrete project values.
Variants
Default
Default audio channel
Effects
Effects audio channel
Interface
Interface audio channel
Music
Music audio channel
Custom
Fields
value: u32
Custom value
Allows AudioChannel to be extended (e.g. for using project specific enumerated audio channels or entity specific channels).
Trait Implementations
sourceimpl Clone for AudioChannel
impl Clone for AudioChannel
sourcefn clone(&self) -> AudioChannel
fn clone(&self) -> AudioChannel
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AudioChannel
impl Debug for AudioChannel
sourceimpl PartialEq<AudioChannel> for AudioChannel
impl PartialEq<AudioChannel> for AudioChannel
sourcefn eq(&self, other: &AudioChannel) -> bool
fn eq(&self, other: &AudioChannel) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AudioChannel) -> bool
fn ne(&self, other: &AudioChannel) -> bool
This method tests for !=
.
impl Copy for AudioChannel
impl Eq for AudioChannel
impl StructuralEq for AudioChannel
impl StructuralPartialEq for AudioChannel
Auto Trait Implementations
impl RefUnwindSafe for AudioChannel
impl Send for AudioChannel
impl Sync for AudioChannel
impl Unpin for AudioChannel
impl UnwindSafe for AudioChannel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more