Skip to main content

AssetClosures

Type Alias AssetClosures 

Source
pub type AssetClosures = Rc<RefCell<Vec<Closure<dyn FnMut()>>>>;
Expand description

A reference-counted, interior-mutable list of asset load callbacks.

Stores Closure objects to prevent them from being dropped prematurely, avoiding memory leaks when registering onload/onerror handlers.

Aliased Typeยง

pub struct AssetClosures { /* private fields */ }