Trait goods::TrivialAsset
source · [−]pub trait TrivialAsset: Clone + Sized + Send + Sync + 'static {
type Error: Error + Send + Sync + 'static;
fn name() -> &'static str;
fn decode(bytes: Box<[u8]>) -> Result<Self, Self::Error>;
}
Expand description
Trivial assets have no dependencies and do not require building.
They are decoded directly from bytes.
And thus they implement AssetBuild<B>
for any B
.