pub enum ConstraintGoalDescriptionInner {
Goal(GoalDescription),
Nested(Box<ConstraintGoalDescription>),
}Expand description
A type that represents either a GoalDescription or an embedded ConstraintGoalDescription.
§BNF
Corresponds to <con2-GD> in the PDDL 3.1 specification.
§Usage
Used by ConstraintGoalDescription.
Variants§
Goal(GoalDescription)
A plain goal description, <GD>.
Nested(Box<ConstraintGoalDescription>)
A nested constraint goal description, <con-GD>.
Implementations§
Source§impl ConstraintGoalDescriptionInner
impl ConstraintGoalDescriptionInner
Sourcepub fn nested(gd: ConstraintGoalDescription) -> Self
pub fn nested(gd: ConstraintGoalDescription) -> Self
Creates a nested constraint goal description.
Sourcepub fn new_nested(gd: ConstraintGoalDescription) -> Self
pub fn new_nested(gd: ConstraintGoalDescription) -> Self
Alias for Self::nested.
Sourcepub const fn goal(gd: GoalDescription) -> Self
pub const fn goal(gd: GoalDescription) -> Self
Creates a plain goal description.
Sourcepub fn new_goal(gd: GoalDescription) -> Self
pub fn new_goal(gd: GoalDescription) -> Self
Alias for Self::goal.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ConstraintGoalDescriptionInner
Available on crate feature serde only.
impl<'de> Deserialize<'de> for ConstraintGoalDescriptionInner
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<ConstraintGoalDescription> for ConstraintGoalDescriptionInner
impl From<ConstraintGoalDescription> for ConstraintGoalDescriptionInner
Source§fn from(value: ConstraintGoalDescription) -> Self
fn from(value: ConstraintGoalDescription) -> Self
Converts to this type from the input type.
Source§impl From<GoalDescription> for ConstraintGoalDescriptionInner
impl From<GoalDescription> for ConstraintGoalDescriptionInner
Source§fn from(value: GoalDescription) -> Self
fn from(value: GoalDescription) -> Self
Converts to this type from the input type.
Source§impl Parser for ConstraintGoalDescriptionInner
Available on crate feature parser only.
impl Parser for ConstraintGoalDescriptionInner
Available on crate feature
parser only.Source§type Item = ConstraintGoalDescriptionInner
type Item = ConstraintGoalDescriptionInner
The parsed value;
Self except for
DurationConstraint, which may be empty.Source§impl Serialize for ConstraintGoalDescriptionInner
Available on crate feature serde only.
impl Serialize for ConstraintGoalDescriptionInner
Available on crate feature
serde only.impl StructuralPartialEq for ConstraintGoalDescriptionInner
Source§impl Visitor<ConstraintGoalDescriptionInner, RcDoc<'static>> for PrettyRenderer
Available on crate feature pretty only.
impl Visitor<ConstraintGoalDescriptionInner, RcDoc<'static>> for PrettyRenderer
Available on crate feature
pretty only.Source§fn visit(&self, value: &ConstraintGoalDescriptionInner) -> RcDoc<'static>
fn visit(&self, value: &ConstraintGoalDescriptionInner) -> RcDoc<'static>
Visits
value and returns the result.Auto Trait Implementations§
impl Forget for ConstraintGoalDescriptionInner
impl Freeze for ConstraintGoalDescriptionInner
impl Move for ConstraintGoalDescriptionInner
impl RefUnwindSafe for ConstraintGoalDescriptionInner
impl Send for ConstraintGoalDescriptionInner
impl Sync for ConstraintGoalDescriptionInner
impl Unpin for ConstraintGoalDescriptionInner
impl UnsafeUnpin for ConstraintGoalDescriptionInner
impl UnwindSafe for ConstraintGoalDescriptionInner
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.