Struct pddl_parser::plan::simple_action::SimpleAction
source · pub struct SimpleAction {
pub name: String,
pub parameters: Vec<Parameter>,
}Expand description
Action is a named sequence of steps that can be performed by an agent.
Fields§
§name: StringThe name of the action.
parameters: Vec<Parameter>The parameters of the action.
Implementations§
source§impl SimpleAction
impl SimpleAction
sourcepub fn parse(
input: TokenStream<'_>
) -> IResult<TokenStream<'_>, Self, ParserError>
pub fn parse( input: TokenStream<'_> ) -> IResult<TokenStream<'_>, Self, ParserError>
Parse an action from a token stream.
Trait Implementations§
source§impl Clone for SimpleAction
impl Clone for SimpleAction
source§fn clone(&self) -> SimpleAction
fn clone(&self) -> SimpleAction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SimpleAction
impl Debug for SimpleAction
source§impl<'de> Deserialize<'de> for SimpleAction
impl<'de> Deserialize<'de> for SimpleAction
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 Display for SimpleAction
impl Display for SimpleAction
source§impl Hash for SimpleAction
impl Hash for SimpleAction
source§impl Ord for SimpleAction
impl Ord for SimpleAction
source§fn cmp(&self, other: &SimpleAction) -> Ordering
fn cmp(&self, other: &SimpleAction) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SimpleAction
impl PartialEq for SimpleAction
source§fn eq(&self, other: &SimpleAction) -> bool
fn eq(&self, other: &SimpleAction) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for SimpleAction
impl PartialOrd for SimpleAction
source§fn partial_cmp(&self, other: &SimpleAction) -> Option<Ordering>
fn partial_cmp(&self, other: &SimpleAction) -> Option<Ordering>
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 moresource§impl Serialize for SimpleAction
impl Serialize for SimpleAction
impl Eq for SimpleAction
impl StructuralPartialEq for SimpleAction
Auto Trait Implementations§
impl RefUnwindSafe for SimpleAction
impl Send for SimpleAction
impl Sync for SimpleAction
impl Unpin for SimpleAction
impl UnwindSafe for SimpleAction
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