Struct pddl_parser::plan::Plan
source · pub struct Plan(pub Vec<Action>);Expand description
A plan is a sequence of actions.
The order of the actions is important. Plan is a wrapper around a Vec<Action> that implements IntoIterator and FromIterator<Action>. This might change in the future.
Tuple Fields§
§0: Vec<Action>Implementations§
source§impl Plan
impl Plan
sourcepub fn parse(input: TokenStream<'_>) -> Result<Self, ParserError>
pub fn parse(input: TokenStream<'_>) -> Result<Self, ParserError>
Parse a plan from a token stream.
The plan must be a sequence of actions. The parser will fail if there are any tokens left after the plan.
Errors
The parser will fail if there are any tokens left after the plan. It will also fail if the plan is empty or if any of the actions are invalid.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Plan
impl<'de> Deserialize<'de> for Plan
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromIterator<Action> for Plan
impl FromIterator<Action> for Plan
source§impl IntoIterator for Plan
impl IntoIterator for Plan
source§impl Ord for Plan
impl Ord for Plan
source§impl PartialEq<Plan> for Plan
impl PartialEq<Plan> for Plan
source§impl PartialOrd<Plan> for Plan
impl PartialOrd<Plan> for Plan
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for Plan
impl StructuralEq for Plan
impl StructuralPartialEq for Plan
Auto Trait Implementations§
impl RefUnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnwindSafe for Plan
Blanket Implementations§
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