pub enum AssetType {
Image,
Audio,
Data,
}Expand description
Categorizes the type of a game asset for appropriate loading and storage.
Variants§
Image
An image asset (PNG, JPEG, SVG, etc.) loaded as HtmlImageElement.
Audio
An audio asset loaded as an AudioBuffer for Web Audio playback.
Data
A generic binary data asset loaded as a Vec<u8>.
Trait Implementations§
impl Copy for AssetType
impl Eq for AssetType
impl StructuralPartialEq for AssetType
Auto Trait Implementations§
impl Freeze for AssetType
impl RefUnwindSafe for AssetType
impl Send for AssetType
impl Sync for AssetType
impl Unpin for AssetType
impl UnsafeUnpin for AssetType
impl UnwindSafe for AssetType
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