[][src]Struct rask_wasm::communication::Sprite

pub struct Sprite {
    pub transform: Mat3,
    pub tex_id: u32,
    pub tex_sub_id: u64,
}

Fields

transform: Mat3tex_id: u32tex_sub_id: u64

Implementations

impl Sprite[src]

pub const fn new(transform: Mat3, tex_id: u32, tex_sub_id: u64) -> Self[src]

pub const fn empty() -> Self[src]

pub const fn from_animation_state(state: AnimationState, char_id: u32) -> Self[src]

Trait Implementations

impl Clone for Sprite[src]

impl Copy for Sprite[src]

impl Debug for Sprite[src]

impl Default for Sprite[src]

Auto Trait Implementations

impl RefUnwindSafe for Sprite

impl Send for Sprite

impl Sync for Sprite

impl Unpin for Sprite

impl UnwindSafe for Sprite

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<S, T> Collide<[T]> for S where
    T: Collide<S>, 
[src]

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Resource for T where
    T: Any + Send + Sync

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryDefault for T where
    T: Default

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.