pub enum DurationConstraint {
And(Vec<DurationConstraint>),
Cmp {
op: CompareOp,
expr: NumericExpr,
},
}Expand description
Duration constraint on a durative action (e.g. (= ?duration 5), (>= ?duration (distance ?x ?y))).
Variants§
And(Vec<DurationConstraint>)
Conjunction of multiple duration constraints.
Cmp
A single comparison against ?duration.
Fields
§
expr: NumericExprThe right-hand-side expression (left-hand side is always ?duration).
Trait Implementations§
Source§impl Clone for DurationConstraint
impl Clone for DurationConstraint
Source§fn clone(&self) -> DurationConstraint
fn clone(&self) -> DurationConstraint
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 DurationConstraint
impl Debug for DurationConstraint
Source§impl PartialEq for DurationConstraint
impl PartialEq for DurationConstraint
Source§fn eq(&self, other: &DurationConstraint) -> bool
fn eq(&self, other: &DurationConstraint) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DurationConstraint
impl Serialize for DurationConstraint
impl StructuralPartialEq for DurationConstraint
Auto Trait Implementations§
impl Freeze for DurationConstraint
impl RefUnwindSafe for DurationConstraint
impl Send for DurationConstraint
impl Sync for DurationConstraint
impl Unpin for DurationConstraint
impl UnsafeUnpin for DurationConstraint
impl UnwindSafe for DurationConstraint
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