Trait bones_render::prelude::UntypedAssetProvider
source · pub trait UntypedAssetProvider: Sync + Send {
fn get(&self, handle: UntypedHandle) -> *const u8;
fn get_mut(&mut self, handle: UntypedHandle) -> *mut u8;
}Expand description
Trait implemented for asset providers that can return untyped pointers to their assets.
Required Methods§
sourcefn get(&self, handle: UntypedHandle) -> *const u8
fn get(&self, handle: UntypedHandle) -> *const u8
Returns a read-only pointer to the asset for the given handle, or a null pointer if it doesn’t exist.
sourcefn get_mut(&mut self, handle: UntypedHandle) -> *mut u8
fn get_mut(&mut self, handle: UntypedHandle) -> *mut u8
Returns a mutable-only pointer to the asset for the given handle, or a null pointer if it doesn’t exist.