dioxus_native_core::prelude

Trait Dependancy

Source
pub trait Dependancy {
    type ElementBorrowed<'a>;

    // Provided method
    fn type_ids() -> Box<[TypeId]> { ... }
}
Expand description

A trait that is implemented for all the dependancies of a State

Required Associated Types§

Source

type ElementBorrowed<'a>

A tuple with all the elements of the dependancy as DependancyView

Provided Methods§

Source

fn type_ids() -> Box<[TypeId]>

Returns a list of all the TypeIds of the elements in the dependancy

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Dependancy for ()

Source§

impl<A: Send + Sync + Component> Dependancy for (A,)

Source§

impl<A: Send + Sync + Component, B: Send + Sync + Component> Dependancy for (A, B)

Source§

impl<A: Send + Sync + Component, B: Send + Sync + Component, C: Send + Sync + Component> Dependancy for (A, B, C)

Source§

impl<A: Send + Sync + Component, B: Send + Sync + Component, C: Send + Sync + Component, D: Send + Sync + Component> Dependancy for (A, B, C, D)

Source§

impl<A: Send + Sync + Component, B: Send + Sync + Component, C: Send + Sync + Component, D: Send + Sync + Component, E: Send + Sync + Component> Dependancy for (A, B, C, D, E)

Source§

impl<A: Send + Sync + Component, B: Send + Sync + Component, C: Send + Sync + Component, D: Send + Sync + Component, E: Send + Sync + Component, F: Send + Sync + Component> Dependancy for (A, B, C, D, E, F)

Source§

impl<A: Send + Sync + Component, B: Send + Sync + Component, C: Send + Sync + Component, D: Send + Sync + Component, E: Send + Sync + Component, F: Send + Sync + Component, G: Send + Sync + Component> Dependancy for (A, B, C, D, E, F, G)

Source§

impl<A: Send + Sync + Component, B: Send + Sync + Component, C: Send + Sync + Component, D: Send + Sync + Component, E: Send + Sync + Component, F: Send + Sync + Component, G: Send + Sync + Component, H: Send + Sync + Component> Dependancy for (A, B, C, D, E, F, G, H)

Source§

impl<A: Send + Sync + Component, B: Send + Sync + Component, C: Send + Sync + Component, D: Send + Sync + Component, E: Send + Sync + Component, F: Send + Sync + Component, G: Send + Sync + Component, H: Send + Sync + Component, I: Send + Sync + Component> Dependancy for (A, B, C, D, E, F, G, H, I)

Source§

impl<A: Send + Sync + Component, B: Send + Sync + Component, C: Send + Sync + Component, D: Send + Sync + Component, E: Send + Sync + Component, F: Send + Sync + Component, G: Send + Sync + Component, H: Send + Sync + Component, I: Send + Sync + Component, J: Send + Sync + Component> Dependancy for (A, B, C, D, E, F, G, H, I, J)

Implementors§