Skip to main content

EntityCommandsDiffExt

Trait EntityCommandsDiffExt 

Source
pub trait EntityCommandsDiffExt {
    // Required method
    fn apply_diff<C: Diffable>(&mut self, diff: C::Diff) -> &mut Self;
}
Expand description

Extension trait for EntityCommands to apply diffs.

See also EntityDiffExt.

Required Methods§

Source

fn apply_diff<C: Diffable>(&mut self, diff: C::Diff) -> &mut Self

Queues application of a diff to component C and records it in the entity’s DiffHistory.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl EntityCommandsDiffExt for EntityCommands<'_>

Source§

fn apply_diff<C: Diffable>(&mut self, diff: C::Diff) -> &mut Self

Implementors§