[−][src]Struct graphplan::action::Action
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]
id: ActionId,
reqs: HashSet<&'a Proposition<PropositionId>>,
effects: HashSet<&'a Proposition<PropositionId>>
) -> Action<'a, ActionId, PropositionId>
pub fn new_maintenance(
prop: &'a Proposition<PropositionId>
) -> Action<'a, ActionId, PropositionId>
[src]
prop: &'a Proposition<PropositionId>
) -> Action<'a, ActionId, PropositionId>
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]
fn clone(&self) -> Action<'a, ActionId, PropositionId>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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
fn hash<H>(&self, state: &mut H) where
H: Hasher,
[src]
H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'a, ActionId: Ord + Clone + Hash, PropositionId: Ord + PartialEq + Eq + Display + Hash + Clone> Ord for Action<'a, ActionId, PropositionId>
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[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]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[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,
ActionId: RefUnwindSafe,
PropositionId: RefUnwindSafe,
impl<'a, ActionId, PropositionId> Send for Action<'a, ActionId, PropositionId> where
ActionId: Send,
PropositionId: Sync,
ActionId: Send,
PropositionId: Sync,
impl<'a, ActionId, PropositionId> Sync for Action<'a, ActionId, PropositionId> where
ActionId: Sync,
PropositionId: Sync,
ActionId: Sync,
PropositionId: Sync,
impl<'a, ActionId, PropositionId> Unpin for Action<'a, ActionId, PropositionId> where
ActionId: Unpin,
ActionId: Unpin,
impl<'a, ActionId, PropositionId> UnwindSafe for Action<'a, ActionId, PropositionId> where
ActionId: UnwindSafe,
PropositionId: RefUnwindSafe,
ActionId: UnwindSafe,
PropositionId: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,