pub struct Sprite<'a, T, V> {
pub idx: SpriteIdx<T, V>,
pub top_left: Point<i32>,
pub transparent: Cow<'a, [PaletteIdx]>,
pub scale: Option<i32>,
pub flip: Option<Flip>,
pub rotate: Option<Rotate>,
pub width: Option<i32>,
pub height: Option<i32>,
}
Fields§
§idx: SpriteIdx<T, V>
§top_left: Point<i32>
§transparent: Cow<'a, [PaletteIdx]>
§scale: Option<i32>
§flip: Option<Flip>
§rotate: Option<Rotate>
§width: Option<i32>
§height: Option<i32>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T, V> RefUnwindSafe for Sprite<'a, T, V>where
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, T, V> Send for Sprite<'a, T, V>
impl<'a, T, V> Sync for Sprite<'a, T, V>
impl<'a, T, V> Unpin for Sprite<'a, T, V>
impl<'a, T, V> UnwindSafe for Sprite<'a, T, V>where
T: UnwindSafe,
V: UnwindSafe,
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