Struct components::engine::d2::platform::DummySound
source · [−]pub struct DummySound {
pub inner: Rc<BasicAsset<DummySound>>,
/* private fields */
}
Expand description
An empty sound used in environments that don’t support audio.
Fields
inner: Rc<BasicAsset<DummySound>>
Implementations
sourceimpl DummySound
impl DummySound
pub fn new() -> DummySound
pub fn instance() -> DummySound
Trait Implementations
sourceimpl AsRef<BasicAsset<DummySound>> for DummySound
impl AsRef<BasicAsset<DummySound>> for DummySound
sourcefn as_ref(&self) -> &BasicAsset<DummySound>
fn as_ref(&self) -> &BasicAsset<DummySound>
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Asset for DummySound
impl Asset for DummySound
sourcefn reload_count(&self) -> usize
fn reload_count(&self) -> usize
The number of times this asset has been live-reloaded. Asset reloading is only enabled in debug builds, and only from the /assets directory. Read more
sourceimpl Clone for DummySound
impl Clone for DummySound
sourcefn clone(&self) -> DummySound
fn clone(&self) -> DummySound
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 Disposable for DummySound
impl Disposable for DummySound
sourceimpl Sound for DummySound
impl Sound for DummySound
Auto Trait Implementations
impl !RefUnwindSafe for DummySound
impl !Send for DummySound
impl !Sync for DummySound
impl Unpin for DummySound
impl !UnwindSafe for DummySound
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
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.