Skip to main content

ResourceAsset

Trait ResourceAsset 

Source
pub trait ResourceAsset { }
Expand description

An asset compiled into the blob’s resource stream rather than stored as a component.

A world declares one of these, cook compiles its payload and assigns it a dense per-kind handle, and the runtime keeps it in the resource table owned by the system that reads it. Exactly the registry’s resource group. A marker only, like RuntimeComponent: it exists so the groups are checkable at compile time.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§