Skip to main content

extendable_assets/asset/
data.rs

1use downcast_rs::{DowncastSync, impl_downcast};
2
3/// Trait for asset data that can be stored in an asset.
4///
5/// This trait extends `DowncastSync` to allow for safe downcasting to concrete types.
6/// Types must explicitly implement this trait to be used as asset data.
7pub trait AssetData: DowncastSync {}
8impl_downcast!(sync AssetData);