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§

source

type Target<'t>

Required Methods§

source

fn async_deref<'a, 'b>( this: &'b AsyncComponent<'a, Self> ) -> &'b Self::Target<'a>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl AsyncComponentDeref for AnimationPlayer

§

type Target<'t> = AsyncAnimationPlayer<'t>

source§

fn async_deref<'a, 'b>( this: &'b AsyncComponent<'a, Self> ) -> &'b Self::Target<'a>

Implementors§