#[repr(u32)]pub enum AudioSource {
AudioClip = 0,
Volume = 1,
Rate = 2,
Looping = 3,
Force2d = 4,
AllowInterruption = 5,
NextOperation = 6,
StopOnDestroy = 7,
PlayerIdSet = 8,
IsPlaying = 9,
DynamicModuleData = 10,
}Variants§
AudioClip = 0
‘DataHandle’
Volume = 1
‘f32’
Rate = 2
‘f32’
Looping = 3
‘bool’
Force2d = 4
‘bool’
AllowInterruption = 5
‘bool’
NextOperation = 6
AudioSourceOperation
StopOnDestroy = 7
‘bool’
PlayerIdSet = 8
‘PlayerIdSet’
IsPlaying = 9
‘bool’
DynamicModuleData = 10
‘DataHandle’
Trait Implementations§
Source§impl CheckedBitPattern for AudioSource
impl CheckedBitPattern for AudioSource
Source§type Bits = u32
type Bits = u32
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl Clone for AudioSource
impl Clone for AudioSource
Source§fn clone(&self) -> AudioSource
fn clone(&self) -> AudioSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AudioSource
impl Debug for AudioSource
Source§impl From<AudioSource> for u32
impl From<AudioSource> for u32
Source§fn from(enum_value: AudioSource) -> Self
fn from(enum_value: AudioSource) -> Self
Converts to this type from the input type.
Source§impl Hash for AudioSource
impl Hash for AudioSource
Source§impl PartialEq for AudioSource
impl PartialEq for AudioSource
Source§impl TryFrom<u32> for AudioSource
impl TryFrom<u32> for AudioSource
Source§type Error = TryFromPrimitiveError<AudioSource>
type Error = TryFromPrimitiveError<AudioSource>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for AudioSource
impl TryFromPrimitive for AudioSource
impl Copy for AudioSource
impl Eq for AudioSource
impl NoUninit for AudioSource
impl StructuralPartialEq for AudioSource
Auto Trait Implementations§
impl Freeze for AudioSource
impl RefUnwindSafe for AudioSource
impl Send for AudioSource
impl Sync for AudioSource
impl Unpin for AudioSource
impl UnwindSafe for AudioSource
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