pub trait Extract {
// Required method
fn extract(&self, ctx: &mut ExtractContext<'_>);
}Expand description
Extract an evaluated value into render-world entities or resources.
Implementations can recurse into other values using the same context. Each
call to ExtractContext::entity claims the next persistent output of the
source frame item. Outputs no longer claimed on the next extraction are
despawned automatically. Entities created directly through
ExtractContext::world_mut remain the implementation’s responsibility.
Required Methods§
Sourcefn extract(&self, ctx: &mut ExtractContext<'_>)
fn extract(&self, ctx: &mut ExtractContext<'_>)
Synchronize this value’s render-world outputs.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".