TypedSprite

Trait TypedSprite 

Source
pub trait TypedSprite: AsRaw<Type = LCDSprite> + SpriteApi {
    type Userdata;

    const FREE_ON_DROP: bool = true;
}
Expand description

Represents strictly typed sprite, includes associated user-data and free-on-drop flag.

Provided Associated Constants§

Source

const FREE_ON_DROP: bool = true

Should be freed when sprite is dropped.

Required Associated Types§

Source

type Userdata

Associated user-data with sprite.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<UD, Api: Api, const FOD: bool> TypedSprite for Sprite<UD, Api, FOD>

Source§

const FREE_ON_DROP: bool = FOD

Source§

type Userdata = UD