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§
Sourceconst FREE_ON_DROP: bool = true
const FREE_ON_DROP: bool = true
Should be freed when sprite is dropped.
Required Associated Types§
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.