Trait lux::graphics::IntoSprite [] [src]

pub trait IntoSprite {
    fn into_sprite<D: HasDisplay>(self, display: &D) -> LuxResult<Sprite>;
}

Implemented by any object that can be converted into a Sprite.

Required Methods

fn into_sprite<D: HasDisplay>(self, display: &D) -> LuxResult<Sprite>

Attempts to convert itself into a sprite.

Implementors