pub struct TypedGroup<T: Serialize> {
pub items: Vec<T>,
pub type_name: Option<Name>,
}Expand description
A group of items sharing a common PDDL type.
For example, ?x ?y - location is represented as:
TypedGroup { items: ["?x", "?y"], type_name: Some("location") }When no type is specified (untyped PDDL), type_name is None.
Fields§
§items: Vec<T>The items sharing this type.
type_name: Option<Name>The PDDL type name, or None for untyped items (implicitly type object).
Trait Implementations§
Source§impl<T: Clone + Serialize> Clone for TypedGroup<T>
impl<T: Clone + Serialize> Clone for TypedGroup<T>
Source§fn clone(&self) -> TypedGroup<T>
fn clone(&self) -> TypedGroup<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: PartialEq + Serialize> PartialEq for TypedGroup<T>
impl<T: PartialEq + Serialize> PartialEq for TypedGroup<T>
Source§fn eq(&self, other: &TypedGroup<T>) -> bool
fn eq(&self, other: &TypedGroup<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<T> Serialize for TypedGroup<T>
impl<T> Serialize for TypedGroup<T>
impl<T: Serialize> StructuralPartialEq for TypedGroup<T>
Auto Trait Implementations§
impl<T> Freeze for TypedGroup<T>
impl<T> RefUnwindSafe for TypedGroup<T>where
T: RefUnwindSafe,
impl<T> Send for TypedGroup<T>where
T: Send,
impl<T> Sync for TypedGroup<T>where
T: Sync,
impl<T> Unpin for TypedGroup<T>where
T: Unpin,
impl<T> UnsafeUnpin for TypedGroup<T>
impl<T> UnwindSafe for TypedGroup<T>where
T: UnwindSafe,
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