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

pub struct Action<'a, ActionId: Hash + Clone, PropositionId: Display + Hash + PartialEq + Eq + Clone> {
    pub id: ActionType<'a, ActionId, PropositionId>,
    pub reqs: HashSet<&'a Proposition<PropositionId>>,
    pub effects: HashSet<&'a Proposition<PropositionId>>,
}

Fields

id: ActionType<'a, ActionId, PropositionId>reqs: HashSet<&'a Proposition<PropositionId>>effects: HashSet<&'a Proposition<PropositionId>>

Methods

impl<'a, ActionId: Hash + Clone, PropositionId: Display + Hash + Clone + PartialEq + Eq> Action<'a, ActionId, PropositionId>[src]

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

pub fn new_maintenance(
    prop: &'a Proposition<PropositionId>
) -> Action<'a, ActionId, PropositionId>
[src]

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

Trait Implementations

impl<'a, ActionId: Clone + Hash, PropositionId: Clone + Display + Hash + PartialEq + Eq> Clone for Action<'a, ActionId, PropositionId>[src]

impl<'a, ActionId: Debug + Hash + Clone, PropositionId: Debug + Display + Hash + PartialEq + Eq + Clone> Debug for Action<'a, ActionId, PropositionId>[src]

impl<'a, ActionId: Eq + Hash + Clone, PropositionId: Eq + Display + Hash + PartialEq + Clone> Eq for Action<'a, ActionId, PropositionId>[src]

impl<'a, ActionId: Hash + Clone, PropositionId: Display + Hash + PartialEq + Eq + Clone> Hash for Action<'a, ActionId, PropositionId>[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<'a, ActionId: Ord + Clone + Hash, PropositionId: Ord + PartialEq + Eq + Display + Hash + Clone> Ord for Action<'a, ActionId, PropositionId>[src]

impl<'a, ActionId: Hash + Clone, PropositionId: Clone + Eq + Hash + Display> PartialEq<Action<'a, ActionId, PropositionId>> for Action<'a, ActionId, PropositionId>[src]

impl<'a, ActionId: Hash + Ord + Clone, PropositionId: Ord + PartialEq + Eq + Display + Hash + Clone> PartialOrd<Action<'a, ActionId, PropositionId>> for Action<'a, ActionId, PropositionId>[src]

impl<'a, ActionId: Hash + Clone, PropositionId: Display + Hash + PartialEq + Eq + Clone> StructuralEq for Action<'a, ActionId, PropositionId>[src]

Auto Trait Implementations

impl<'a, ActionId, PropositionId> RefUnwindSafe for Action<'a, ActionId, PropositionId> where
    ActionId: RefUnwindSafe,
    PropositionId: RefUnwindSafe

impl<'a, ActionId, PropositionId> Send for Action<'a, ActionId, PropositionId> where
    ActionId: Send,
    PropositionId: Sync

impl<'a, ActionId, PropositionId> Sync for Action<'a, ActionId, PropositionId> where
    ActionId: Sync,
    PropositionId: Sync

impl<'a, ActionId, PropositionId> Unpin for Action<'a, ActionId, PropositionId> where
    ActionId: Unpin

impl<'a, ActionId, PropositionId> UnwindSafe for Action<'a, ActionId, PropositionId> where
    ActionId: UnwindSafe,
    PropositionId: RefUnwindSafe

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 = Infallible

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.