Enum SoundAttenuation
#[non_exhaustive]pub enum SoundAttenuation {
None,
Linear,
}Expand description
How a sound fades with distance (SoundInstance.Attenuation).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
§impl Clone for SoundAttenuation
impl Clone for SoundAttenuation
§fn clone(&self) -> SoundAttenuation
fn clone(&self) -> SoundAttenuation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SoundAttenuation
§impl Debug for SoundAttenuation
impl Debug for SoundAttenuation
impl Eq for SoundAttenuation
§impl Hash for SoundAttenuation
impl Hash for SoundAttenuation
§impl PartialEq for SoundAttenuation
impl PartialEq for SoundAttenuation
impl StructuralPartialEq for SoundAttenuation
Auto Trait Implementations§
impl Freeze for SoundAttenuation
impl RefUnwindSafe for SoundAttenuation
impl Send for SoundAttenuation
impl Sync for SoundAttenuation
impl Unpin for SoundAttenuation
impl UnsafeUnpin for SoundAttenuation
impl UnwindSafe for SoundAttenuation
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