pub struct Operator {
pub name: String,
pub pre: Vec<Fact>,
pub eff: Vec<Effect>,
pub cost: u32,
}Expand description
A ground action: applicable where its precondition holds, it applies its effects at a cost.
Fields§
§name: StringThe ground action name, e.g. pick ball1 rooma left.
pre: Vec<Fact>The precondition, a partial state; at most one value per variable in a valid task.
eff: Vec<Effect>Applied in order, so a later effect on the same variable wins.
cost: u32The cost of applying the operator, the label cost of its transitions.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Operator
impl<'de> Deserialize<'de> for Operator
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Operator
impl StructuralPartialEq for Operator
Auto Trait Implementations§
impl Forget for Operator
impl Freeze for Operator
impl Move for Operator
impl RefUnwindSafe for Operator
impl Send for Operator
impl Sync for Operator
impl Unpin for Operator
impl UnsafeUnpin for Operator
impl UnwindSafe for Operator
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