pub struct ExtensionMappedAssetCreationHandler { /* private fields */ }Expand description
Maps to multiple AssetCreationHandlers based on the file extension of the asset.
§Example
let mut handler = ExtensionMappedAssetCreationHandler::new()
.with("json", MyJsonHandler {}) // Use MyJsonHandler on .json files
.with("dae", MyMeshHandler {}); // Use MyMeshHandler on .dae filesImplementations§
Trait Implementations§
Source§impl Default for ExtensionMappedAssetCreationHandler
impl Default for ExtensionMappedAssetCreationHandler
Source§fn default() -> ExtensionMappedAssetCreationHandler
fn default() -> ExtensionMappedAssetCreationHandler
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExtensionMappedAssetCreationHandler
impl !RefUnwindSafe for ExtensionMappedAssetCreationHandler
impl !Send for ExtensionMappedAssetCreationHandler
impl !Sync for ExtensionMappedAssetCreationHandler
impl Unpin for ExtensionMappedAssetCreationHandler
impl !UnwindSafe for ExtensionMappedAssetCreationHandler
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