pub enum DurativeActionGoalDescription {
Timed(PreferenceTimedGoalDescription),
And(Vec<DurativeActionGoalDescription>),
Forall(TypedVariables, Box<DurativeActionGoalDescription>),
}Expand description
A durative action goal description.
§Usage
Used by DurativeActionGoalDescription itself, as well as DurativeActionDefinition and
DurativeActionEffect.
Variants§
Timed(PreferenceTimedGoalDescription)
A timed goal that may be a preference, <pref-timed-GD>.
And(Vec<DurativeActionGoalDescription>)
A conjunction, (and <da-GD>*).
Forall(TypedVariables, Box<DurativeActionGoalDescription>)
§Requirements
Requires Universal Preconditions.
Implementations§
Source§impl DurativeActionGoalDescription
impl DurativeActionGoalDescription
Sourcepub fn timed(pref: PreferenceTimedGoalDescription) -> Self
pub fn timed(pref: PreferenceTimedGoalDescription) -> Self
Creates a timed goal from a PreferenceTimedGoalDescription.
Sourcepub fn new_timed(pref: PreferenceTimedGoalDescription) -> Self
pub fn new_timed(pref: PreferenceTimedGoalDescription) -> Self
Alias for Self::timed.
Sourcepub fn and<I: IntoIterator<Item = DurativeActionGoalDescription>>(
prefs: I,
) -> Self
pub fn and<I: IntoIterator<Item = DurativeActionGoalDescription>>( prefs: I, ) -> Self
Creates a conjunction (and <da-GD>*).
Sourcepub fn new_and<I: IntoIterator<Item = DurativeActionGoalDescription>>(
prefs: I,
) -> Self
pub fn new_and<I: IntoIterator<Item = DurativeActionGoalDescription>>( prefs: I, ) -> Self
Alias for Self::and.
Sourcepub fn forall(
variables: TypedVariables,
gd: DurativeActionGoalDescription,
) -> Self
pub fn forall( variables: TypedVariables, gd: DurativeActionGoalDescription, ) -> Self
Creates a universal quantification (forall (<variables>) <da-GD>).
Sourcepub fn new_forall(
variables: TypedVariables,
gd: DurativeActionGoalDescription,
) -> Self
pub fn new_forall( variables: TypedVariables, gd: DurativeActionGoalDescription, ) -> Self
Alias for Self::forall.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DurativeActionGoalDescription
Available on crate feature serde only.
impl<'de> Deserialize<'de> for DurativeActionGoalDescription
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PreferenceTimedGoalDescription> for DurativeActionGoalDescription
impl From<PreferenceTimedGoalDescription> for DurativeActionGoalDescription
Source§fn from(value: PreferenceTimedGoalDescription) -> Self
fn from(value: PreferenceTimedGoalDescription) -> Self
Converts to this type from the input type.
Source§impl Parser for DurativeActionGoalDescription
Available on crate feature parser only.
impl Parser for DurativeActionGoalDescription
Available on crate feature
parser only.Source§type Item = DurativeActionGoalDescription
type Item = DurativeActionGoalDescription
The parsed value;
Self except for
DurationConstraint, which may be empty.Source§impl Serialize for DurativeActionGoalDescription
Available on crate feature serde only.
impl Serialize for DurativeActionGoalDescription
Available on crate feature
serde only.impl StructuralPartialEq for DurativeActionGoalDescription
Source§impl Visitor<DurativeActionGoalDescription, RcDoc<'static>> for PrettyRenderer
Available on crate feature pretty only.
impl Visitor<DurativeActionGoalDescription, RcDoc<'static>> for PrettyRenderer
Available on crate feature
pretty only.Source§fn visit(&self, value: &DurativeActionGoalDescription) -> RcDoc<'static>
fn visit(&self, value: &DurativeActionGoalDescription) -> RcDoc<'static>
Visits
value and returns the result.Auto Trait Implementations§
impl Forget for DurativeActionGoalDescription
impl Freeze for DurativeActionGoalDescription
impl Move for DurativeActionGoalDescription
impl RefUnwindSafe for DurativeActionGoalDescription
impl Send for DurativeActionGoalDescription
impl Sync for DurativeActionGoalDescription
impl Unpin for DurativeActionGoalDescription
impl UnsafeUnpin for DurativeActionGoalDescription
impl UnwindSafe for DurativeActionGoalDescription
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Pretty for Twhere
T: PrettyVisit,
impl<T> Pretty for Twhere
T: PrettyVisit,
Source§impl<T> PrettyVisit for T
impl<T> PrettyVisit for T
Source§fn to_doc(&self, r: &PrettyRenderer) -> RcDoc<'static>
fn to_doc(&self, r: &PrettyRenderer) -> RcDoc<'static>
Available on crate feature
pretty only.Builds the document for
self with the renderer r.