pub struct SimpleAction {
pub name: String,
pub parameters: Vec<TypedParameter>,
pub precondition: Option<Expression>,
pub effect: Expression,
}Expand description
An action with typed parameters.
Fields§
§name: StringThe name of the action.
parameters: Vec<TypedParameter>The parameters of the action.
precondition: Option<Expression>The precondition of the action.
effect: ExpressionThe effect of the action.
Implementations§
Source§impl SimpleAction
impl SimpleAction
Sourcepub fn parse(
input: TokenStream<'_>,
) -> IResult<TokenStream<'_>, SimpleAction, ParserError>
pub fn parse( input: TokenStream<'_>, ) -> IResult<TokenStream<'_>, SimpleAction, ParserError>
Parse a list of actions 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 duplicate 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 From<SimpleAction> for Action
impl From<SimpleAction> for Action
Source§fn from(action: SimpleAction) -> Self
fn from(action: SimpleAction) -> Self
Converts to this type from the input type.
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§impl PartialOrd for SimpleAction
impl PartialOrd for SimpleAction
Source§impl Serialize for SimpleAction
impl Serialize for SimpleAction
impl Eq for SimpleAction
impl StructuralPartialEq for SimpleAction
Auto Trait Implementations§
impl Freeze for SimpleAction
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