pub struct DurativeAction {
pub name: String,
pub parameters: Vec<Parameter>,
pub duration: f64,
pub timestamp: f64,
}Expand description
A durative action is an action that has a duration.
Fields§
§name: StringThe name of the action.
parameters: Vec<Parameter>The parameters of the action.
duration: f64The duration of the action.
timestamp: f64The condition of the action.
Implementations§
Source§impl DurativeAction
impl DurativeAction
Sourcepub const fn new(
name: String,
parameters: Vec<Parameter>,
duration: f64,
timestamp: f64,
) -> Self
pub const fn new( name: String, parameters: Vec<Parameter>, duration: f64, timestamp: f64, ) -> Self
Create a new durative action. This is the same as the simple action, but with a duration and a timestamp.
§Arguments
name- The name of the action.parameters- The parameters of the action.duration- The duration of the action. This is the time it takes for the action to complete.timestamp- The timestamp of the action. This is the time at which the action starts.
Sourcepub fn parse(
input: TokenStream<'_>,
) -> IResult<TokenStream<'_>, Self, ParserError>
pub fn parse( input: TokenStream<'_>, ) -> IResult<TokenStream<'_>, Self, ParserError>
Parse a durative action from a token stream.
Trait Implementations§
Source§impl Clone for DurativeAction
impl Clone for DurativeAction
Source§fn clone(&self) -> DurativeAction
fn clone(&self) -> DurativeAction
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 DurativeAction
impl Debug for DurativeAction
Source§impl<'de> Deserialize<'de> for DurativeAction
impl<'de> Deserialize<'de> for DurativeAction
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 DurativeAction
impl Display for DurativeAction
Source§impl PartialEq for DurativeAction
impl PartialEq for DurativeAction
Source§impl PartialOrd for DurativeAction
impl PartialOrd for DurativeAction
Source§impl Serialize for DurativeAction
impl Serialize for DurativeAction
impl StructuralPartialEq for DurativeAction
Auto Trait Implementations§
impl Freeze for DurativeAction
impl RefUnwindSafe for DurativeAction
impl Send for DurativeAction
impl Sync for DurativeAction
impl Unpin for DurativeAction
impl UnwindSafe for DurativeAction
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