pub trait Targetable<T> {
    // Required method
    fn target_mut(&mut self) -> &mut T;
}
Expand description

Trait to workaround the discrepancies of the change detection mechanisms of assets and components.

Required Methods§

source

fn target_mut(&mut self) -> &mut T

Dereference the target, triggering any change detection, and return a mutable reference.

Implementors§