pub enum Texture {
Sheet(SheetId),
External(u32),
}Expand description
What a quad samples from.
Variants§
Sheet(SheetId)
A sprite sheet of the game, loaded by Resources.
External(u32)
Application-supplied texture (for example a texture preview).
Trait Implementations§
impl Copy for Texture
impl Eq for Texture
impl StructuralPartialEq for Texture
Auto Trait Implementations§
impl Freeze for Texture
impl RefUnwindSafe for Texture
impl Send for Texture
impl Sync for Texture
impl Unpin for Texture
impl UnsafeUnpin for Texture
impl UnwindSafe for Texture
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