Trait hotdrink_rs::planner::Plan[][src]

pub trait Plan {
    fn plan<T, M, C, Comp>(
        component: &Comp
    ) -> Result<Vec<EnforcedConstraint<'_, T>>, PlanError>
    where
        M: MethodSpec<Arg = T> + Clone,
        C: ConstraintSpec<Method = M> + Debug + Clone,
        Comp: ComponentSpec<Constraint = C> + Clone
; }

A trait for planners to implement.

Required methods

fn plan<T, M, C, Comp>(
    component: &Comp
) -> Result<Vec<EnforcedConstraint<'_, T>>, PlanError> where
    M: MethodSpec<Arg = T> + Clone,
    C: ConstraintSpec<Method = M> + Debug + Clone,
    Comp: ComponentSpec<Constraint = C> + Clone
[src]

Constructs a plan for the component.

Loading content...

Implementors

impl Plan for HierarchicalPlanner[src]

Loading content...