Struct flo_canvas::SpriteId [−][src]
pub struct SpriteId(pub u64);
Expand description
Identifier of a canvas ‘sprite’
A ‘sprite’ is just a placeholder for a set of pre-rendered actions (it’s useful for things like images or drawings that are expected to repeat). Sprites survive layer and canvas clears so they can be re-used repeatedly. The drawing layer may cache these actions in order to render the sprite quickly.
Sprites are also faster to draw when rendering to a remote surface as they only need to be sent across once before they can be re-rendered as often as necessary.
Tuple Fields
0: u64Trait Implementations
Encodes this item by appending it to the specified string Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for SpriteId
impl UnwindSafe for SpriteId
Blanket Implementations
Mutably borrows from an owned value. Read more