ComponentTypes

Trait ComponentTypes 

Source
pub trait ComponentTypes {
    type State;
    type Obj;
}
Expand description

Helper trait for naming types of the Component’s state and object for the ComponentState implementation generated by medea_macro::watchers.

Required Associated Types§

Source

type State

Type of Component’s state.

Source

type Obj

Type of object managed by Component.

Implementors§

Source§

impl<S, O> ComponentTypes for Component<S, O>

Source§

type Obj = O

Source§

type State = S