pub struct Plan { /* private fields */ }Expand description
A plan: ground actions, executed one after the other or, with timestamps, at the times given.
Implementations§
Trait Implementations§
Source§impl FromIterator<PlanStep> for Plan
impl FromIterator<PlanStep> for Plan
Source§impl FromStr for Plan
impl FromStr for Plan
Source§fn from_str(text: &str) -> Result<Self, Self::Err>
fn from_str(text: &str) -> Result<Self, Self::Err>
Parses a plan file.
§Errors
Returns a PlanError with the line and column of the first problem; see
PlanErrorKind for the kinds.
§Examples
use pddl_validate::Plan;
let plan: Plan = "(move a b) ; first\n(MOVE b c)\n; cost = 2 (unit cost)".parse().unwrap();
assert_eq!(plan.len(), 2);
assert_eq!(plan.steps()[1].to_string(), "(move b c)");
assert_eq!(plan.steps()[1].line(), 2);impl StructuralPartialEq for Plan
Auto Trait Implementations§
impl Forget for Plan
impl Freeze for Plan
impl Move for Plan
impl RefUnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnsafeUnpin for Plan
impl UnwindSafe for Plan
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