derive-asset-container 0.4.0

Derive AssetManager trait
Documentation

This crate provides a derive macro for the AssetManager trait.

Example

use derive_asset_container::AssetManager;

#[derive(Clone, AssetManager)]
#[asset(asset(TestAsset))]
struct Struct {
field: TestAsset,
inner: InnerStruct,
}

#[derive(Clone, AssetManager)]
#[asset(asset(TestAsset), lazy)]
struct InnerStruct {
field: TestAsset,
}