[−][src]Struct graphplan::action::Action
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]
id: ActionId,
reqs: HashSet<&Proposition>,
effects: HashSet<&Proposition>
) -> Action<ActionId>
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
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<ActionId: Ord + Clone + Hash> Ord for Action<ActionId>
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<ActionId: PartialEq + Hash + Clone> PartialEq<Action<ActionId>> for Action<ActionId>
[src]
fn eq(&self, other: &Action<ActionId>) -> bool
[src]
fn ne(&self, other: &Action<ActionId>) -> bool
[src]
impl<ActionId: Hash + Ord + Clone> PartialOrd<Action<ActionId>> for Action<ActionId>
[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<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,
ActionId: RefUnwindSafe,
impl<ActionId> Send for Action<ActionId> where
ActionId: Send,
ActionId: Send,
impl<ActionId> Sync for Action<ActionId> where
ActionId: Sync,
ActionId: Sync,
impl<ActionId> Unpin for Action<ActionId> where
ActionId: Unpin,
ActionId: Unpin,
impl<ActionId> UnwindSafe for Action<ActionId> where
ActionId: UnwindSafe,
ActionId: UnwindSafe,
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 = !
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>,