Trait tic80::Drawable

source ·
pub trait Drawable {
    type Return;

    // Required method
    fn draw(&self, vram: &mut Display) -> Self::Return;
}

Required Associated Types§

Required Methods§

source

fn draw(&self, vram: &mut Display) -> Self::Return

Implementations on Foreign Types§

source§

impl<T> Drawable for &T
where T: Drawable,

§

type Return = <T as Drawable>::Return

source§

fn draw(&self, vram: &mut Display) -> Self::Return

source§

impl<T> Drawable for &mut T
where T: Drawable,

§

type Return = <T as Drawable>::Return

source§

fn draw(&self, vram: &mut Display) -> Self::Return

Implementors§

source§

impl Drawable for Line

§

type Return = ()

source§

impl Drawable for Rect

§

type Return = ()

source§

impl Drawable for TexturedTriangle<'_>

§

type Return = ()

source§

impl Drawable for Triangle

§

type Return = ()

source§

impl<'a> Drawable for Font<'a>

§

type Return = u32

source§

impl<'a> Drawable for Map<'a>

§

type Return = ()

source§

impl<'a> Drawable for Text<'a>

§

type Return = u32

source§

impl<T, V> Drawable for Sprite<'_, T, V>
where T: Bpp<SpriteIdxSize = V>, V: Copy + Number, u16: From<<V as Number>::UnderlyingType>,

§

type Return = ()