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]
component: &Comp
) -> Result<Vec<EnforcedConstraint<'_, T>>, PlanError> where
M: MethodSpec<Arg = T> + Clone,
C: ConstraintSpec<Method = M> + Debug + Clone,
Comp: ComponentSpec<Constraint = C> + Clone,
Constructs a plan for the component.
Implementors
impl Plan for HierarchicalPlanner
[src]
impl Plan for HierarchicalPlanner
[src]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]
_component: &Comp
) -> Result<Vec<EnforcedConstraint<'_, T>>, PlanError> where
M: MethodSpec<Arg = T> + Clone,
C: ConstraintSpec<Method = M> + Debug + Clone,
Comp: ComponentSpec<Constraint = C> + Clone,