[][src]Struct graphplan::action::Action

pub struct Action<ActionId: Hash + Clone> {
    pub id: ActionType<ActionId>,
    pub reqs: HashSet<Proposition>,
    pub effects: HashSet<Proposition>,
}

Fields

id: ActionType<ActionId>reqs: HashSet<Proposition>effects: HashSet<Proposition>

Methods

impl<ActionId: Hash + Clone> Action<ActionId>[src]

pub fn new(
    id: ActionId,
    reqs: HashSet<&Proposition>,
    effects: HashSet<&Proposition>
) -> Action<ActionId>
[src]

pub fn new_maintenance(prop: Proposition) -> Action<ActionId>[src]

pub fn get_action(&self) -> &ActionId[src]

Trait Implementations

impl<ActionId: Clone + Hash> Clone for Action<ActionId>[src]

impl<ActionId: Debug + Hash + Clone> Debug for Action<ActionId>[src]

impl<ActionId: Eq + Hash + Clone> Eq for Action<ActionId>[src]

impl<ActionId: Hash + Clone> Hash for Action<ActionId>[src]

Actions are hashed based on their id, that means you can't have two actions of the same id in a HashSet even if they have different reqs and effects

impl<ActionId: Ord + Clone + Hash> Ord for Action<ActionId>[src]

impl<ActionId: PartialEq + Hash + Clone> PartialEq<Action<ActionId>> for Action<ActionId>[src]

impl<ActionId: Hash + Ord + Clone> PartialOrd<Action<ActionId>> for Action<ActionId>[src]

impl<ActionId: Hash + Clone> StructuralEq for Action<ActionId>[src]

impl<ActionId: Hash + Clone> StructuralPartialEq for Action<ActionId>[src]

Auto Trait Implementations

impl<ActionId> RefUnwindSafe for Action<ActionId> where
    ActionId: RefUnwindSafe

impl<ActionId> Send for Action<ActionId> where
    ActionId: Send

impl<ActionId> Sync for Action<ActionId> where
    ActionId: Sync

impl<ActionId> Unpin for Action<ActionId> where
    ActionId: Unpin

impl<ActionId> UnwindSafe for Action<ActionId> where
    ActionId: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.