Trait bevy_defer::AsyncComponentDeref
source · pub trait AsyncComponentDeref: Component + Sized {
type Target<'t>;
// Required method
fn async_deref<'a, 'b>(
this: &'b AsyncComponent<'a, Self>
) -> &'b Self::Target<'a>;
}
Expand description
Add method to AsyncComponent
through deref.
It is recommended to derive RefCast
for this.
Required Associated Types§
Required Methods§
fn async_deref<'a, 'b>( this: &'b AsyncComponent<'a, Self> ) -> &'b Self::Target<'a>
Object Safety§
This trait is not object safe.