pub struct BasicAsset<A> { /* private fields */ }
Implementations
sourceimpl<A> BasicAsset<A>
impl<A> BasicAsset<A>
pub fn new() -> Self
pub fn assert_not_disposed(&self)
pub fn reload(&self, asset: A)
sourcepub fn copy_from(&self, asset: A)
pub fn copy_from(&self, asset: A)
Fully copy the content from another asset type, for reloading.
sourcepub fn on_disposed(&self)
pub fn on_disposed(&self)
Handle disposing.
Trait Implementations
sourceimpl AsRef<BasicAsset<BasicFile>> for BasicFile
impl AsRef<BasicAsset<BasicFile>> for BasicFile
sourcefn as_ref(&self) -> &BasicAsset<BasicFile>
fn as_ref(&self) -> &BasicAsset<BasicFile>
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl<R: TextureRoot + Debug> AsRef<BasicAsset<BasicTexture<R>>> for BasicTexture<R>
impl<R: TextureRoot + Debug> AsRef<BasicAsset<BasicTexture<R>>> for BasicTexture<R>
sourcefn as_ref(&self) -> &BasicAsset<BasicTexture<R>>
fn as_ref(&self) -> &BasicAsset<BasicTexture<R>>
Converts this type into a shared reference of the (usually inferred) input type.
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<A> Asset for BasicAsset<A>
impl<A> Asset for BasicAsset<A>
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<A: Clone> Clone for BasicAsset<A>
impl<A: Clone> Clone for BasicAsset<A>
sourcefn clone(&self) -> BasicAsset<A>
fn clone(&self) -> BasicAsset<A>
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<A: Debug> Debug for BasicAsset<A>
impl<A: Debug> Debug for BasicAsset<A>
sourceimpl<A> Default for BasicAsset<A>
impl<A> Default for BasicAsset<A>
sourceimpl<A> Disposable for BasicAsset<A>
impl<A> Disposable for BasicAsset<A>
Auto Trait Implementations
impl<A> !RefUnwindSafe for BasicAsset<A>
impl<A> !Send for BasicAsset<A>
impl<A> !Sync for BasicAsset<A>
impl<A> Unpin for BasicAsset<A> where
A: Unpin,
impl<A> !UnwindSafe for BasicAsset<A>
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
sourceimpl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn 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
.