#[non_exhaustive]pub struct Atom {
pub symbol: String,
pub arguments: Vec<String>,
}Expand description
A predicate or function symbol applied to objects, such as (at t1 home) or (fuel t1).
The validator stores every name in ASCII lowercase, because PDDL names are
case-insensitive; Atom::new lowercases its input to match. Atoms order by
symbol, then by arguments, so traces and diagnostics list them deterministically.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.symbol: StringThe predicate or function symbol, in ASCII lowercase.
arguments: Vec<String>The objects the symbol is applied to, in ASCII lowercase. Empty for a nullary symbol.
Implementations§
Trait Implementations§
impl Eq for Atom
Source§impl Ord for Atom
impl Ord for Atom
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Atom
impl PartialOrd for Atom
impl StructuralPartialEq for Atom
Auto Trait Implementations§
impl Forget for Atom
impl Freeze for Atom
impl Move for Atom
impl RefUnwindSafe for Atom
impl Send for Atom
impl Sync for Atom
impl Unpin for Atom
impl UnsafeUnpin for Atom
impl UnwindSafe for Atom
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