pub enum GraphicAsset {
Path(&'static str),
Bytes {
file_name: &'static str,
data: &'static [u8],
},
}Expand description
Represents an asset that can be loaded as a texture. This can be either a file path or embedded bytes.
Variants§
Implementations§
Trait Implementations§
Source§impl Debug for GraphicAsset
impl Debug for GraphicAsset
Source§impl From<&'static GraphicAsset> for ImageSource
impl From<&'static GraphicAsset> for ImageSource
Source§fn from(asset: &'static GraphicAsset) -> Self
fn from(asset: &'static GraphicAsset) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GraphicAsset
impl RefUnwindSafe for GraphicAsset
impl Send for GraphicAsset
impl Sync for GraphicAsset
impl Unpin for GraphicAsset
impl UnsafeUnpin for GraphicAsset
impl UnwindSafe for GraphicAsset
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