pub struct PlanStep { /* private fields */ }Expand description
One ground action of a plan, such as (drive t1 home shop), with its start time
and duration in a temporal plan.
Implementations§
Source§impl PlanStep
impl PlanStep
Sourcepub const fn at(self, time: f64) -> Self
pub const fn at(self, time: f64) -> Self
Returns the step starting at time, for a temporal plan.
§Examples
use pddl_validate::PlanStep;
let step = PlanStep::new("drive", ["t1"]).at(1.5).lasting(2.0);
assert_eq!((step.time(), step.duration()), (Some(1.5), Some(2.0)));Sourcepub const fn lasting(self, duration: f64) -> Self
pub const fn lasting(self, duration: f64) -> Self
Returns the step with a duration, for a durative action.
Trait Implementations§
Source§impl FromIterator<PlanStep> for Plan
impl FromIterator<PlanStep> for Plan
impl StructuralPartialEq for PlanStep
Auto Trait Implementations§
impl Forget for PlanStep
impl Freeze for PlanStep
impl Move for PlanStep
impl RefUnwindSafe for PlanStep
impl Send for PlanStep
impl Sync for PlanStep
impl Unpin for PlanStep
impl UnsafeUnpin for PlanStep
impl UnwindSafe for PlanStep
Blanket Implementations§
Source§impl<V, T, O> AcceptMut<V, T, O> for Twhere
V: VisitorMut<T, O>,
impl<V, T, O> AcceptMut<V, T, O> for Twhere
V: VisitorMut<T, O>,
Source§fn accept_mut(&self, v: &mut V) -> O
fn accept_mut(&self, v: &mut V) -> O
Lets the mutable visitor
v visit self.Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more