pub struct AssetLoaderRegistry { /* private fields */ }Implementations§
Source§impl AssetLoaderRegistry
impl AssetLoaderRegistry
pub fn new() -> Self
pub fn register_loader<T>(&mut self, loader: T)where
T: AssetLoader + 'static,
Sourcepub fn convert_and_insert(
&self,
id: RawWeakId,
octets: &[u8],
resources: &mut ResourceStorage,
) -> Result<(), LoadError>
pub fn convert_and_insert( &self, id: RawWeakId, octets: &[u8], resources: &mut ResourceStorage, ) -> Result<(), LoadError>
§Errors
If missing or conversion failed
Trait Implementations§
Source§impl Debug for AssetLoaderRegistry
impl Debug for AssetLoaderRegistry
Source§impl Default for AssetLoaderRegistry
impl Default for AssetLoaderRegistry
Source§fn default() -> AssetLoaderRegistry
fn default() -> AssetLoaderRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AssetLoaderRegistry
impl !RefUnwindSafe for AssetLoaderRegistry
impl Send for AssetLoaderRegistry
impl Sync for AssetLoaderRegistry
impl Unpin for AssetLoaderRegistry
impl !UnwindSafe for AssetLoaderRegistry
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