pub enum AssetType {
Image,
Texture,
Font,
Sound,
Text,
Data,
}Expand description
Identifiers for different asset types.
Variants§
Image
Raw pixel data (before GPU upload).
Texture
GPU texture (after upload to the rendering backend).
Font
Font data.
Sound
Audio clip.
Text
Text/shader/JSON file.
Data
Serialized data (JSON, RON, etc.).
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