euv_engine/asset/type.rs
1use crate::*;
2
3/// A reference-counted, interior-mutable list of asset load callbacks.
4///
5/// Stores `Closure` objects to prevent them from being dropped prematurely,
6/// avoiding memory leaks when registering `onload`/`onerror` handlers.
7pub type AssetClosures = Rc<RefCell<Vec<Closure<dyn FnMut()>>>>;