Enum megadrive_sys::vdp::SpriteSize[][src]

#[repr(u8)]pub enum SpriteSize {
    Size1x1,
    Size2x1,
    Size3x1,
    Size4x1,
    Size1x2,
    Size2x2,
    Size3x2,
    Size4x2,
    Size1x3,
    Size2x3,
    Size3x3,
    Size4x3,
    Size1x4,
    Size2x4,
    Size3x4,
    Size4x4,
}

An enumeration of valid sprite sizes in tiles.

Variants

Size1x1
Size2x1
Size3x1
Size4x1
Size1x2
Size2x2
Size3x2
Size4x2
Size1x3
Size2x3
Size3x3
Size4x3
Size1x4
Size2x4
Size3x4
Size4x4

Implementations

impl SpriteSize[src]

pub fn for_size(w: u8, h: u8) -> SpriteSize[src]

Get the SpriteSize given the width and height of the sprite in tiles.

Trait Implementations

impl Clone for SpriteSize[src]

impl Copy for SpriteSize[src]

impl Debug for SpriteSize[src]

Auto Trait Implementations

impl Send for SpriteSize

impl Sync for SpriteSize

impl Unpin for SpriteSize

Blanket Implementations

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

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

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

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

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

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.