pub enum InitElement {
Predicate(AtomicFormula),
NotPredicate(AtomicFormula),
NumericAssignment(FunctionTerm, f64),
At(f64, Box<InitElement>),
}Expand description
An element of the problem’s :init section.
Variants§
Predicate(AtomicFormula)
A predicate that holds in the initial state (e.g. (at truck1 s0)).
NotPredicate(AtomicFormula)
A negated predicate in the initial state (e.g. (not (visited c1))).
NumericAssignment(FunctionTerm, f64)
A numeric fluent initialization (e.g. (= (distance a b) 10)).
At(f64, Box<InitElement>)
A timed initial literal: (at <time> <literal>). The inner element is
typically a Predicate or NotPredicate.
Trait Implementations§
Source§impl Clone for InitElement
impl Clone for InitElement
Source§fn clone(&self) -> InitElement
fn clone(&self) -> InitElement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InitElement
impl Debug for InitElement
Source§impl PartialEq for InitElement
impl PartialEq for InitElement
Source§fn eq(&self, other: &InitElement) -> bool
fn eq(&self, other: &InitElement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InitElement
impl Serialize for InitElement
impl StructuralPartialEq for InitElement
Auto Trait Implementations§
impl Freeze for InitElement
impl RefUnwindSafe for InitElement
impl Send for InitElement
impl Sync for InitElement
impl Unpin for InitElement
impl UnsafeUnpin for InitElement
impl UnwindSafe for InitElement
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