Struct pddl_parser::domain::typed_predicate::TypedPredicate
source · pub struct TypedPredicate {
pub name: String,
pub parameters: Vec<TypedParameter>,
}Expand description
A predicate with typed parameters.
Fields§
§name: StringThe name of the predicate.
parameters: Vec<TypedParameter>The parameters of the predicate.
Implementations§
source§impl TypedPredicate
impl TypedPredicate
sourcepub fn parse_functions(
input: TokenStream<'_>
) -> IResult<TokenStream<'_>, Vec<TypedPredicate>, ParserError>
pub fn parse_functions( input: TokenStream<'_> ) -> IResult<TokenStream<'_>, Vec<TypedPredicate>, ParserError>
Parse a list of functions from a token stream.
sourcepub fn parse_predicates(
input: TokenStream<'_>
) -> IResult<TokenStream<'_>, Vec<TypedPredicate>, ParserError>
pub fn parse_predicates( input: TokenStream<'_> ) -> IResult<TokenStream<'_>, Vec<TypedPredicate>, ParserError>
Parse a list of predicates from a token stream.
Trait Implementations§
source§impl Clone for TypedPredicate
impl Clone for TypedPredicate
source§fn clone(&self) -> TypedPredicate
fn clone(&self) -> TypedPredicate
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for TypedPredicate
impl Debug for TypedPredicate
source§impl<'de> Deserialize<'de> for TypedPredicate
impl<'de> Deserialize<'de> for TypedPredicate
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for TypedPredicate
impl Hash for TypedPredicate
source§impl Ord for TypedPredicate
impl Ord for TypedPredicate
source§fn cmp(&self, other: &TypedPredicate) -> Ordering
fn cmp(&self, other: &TypedPredicate) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TypedPredicate
impl PartialEq for TypedPredicate
source§fn eq(&self, other: &TypedPredicate) -> bool
fn eq(&self, other: &TypedPredicate) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for TypedPredicate
impl PartialOrd for TypedPredicate
source§fn partial_cmp(&self, other: &TypedPredicate) -> Option<Ordering>
fn partial_cmp(&self, other: &TypedPredicate) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for TypedPredicate
impl Serialize for TypedPredicate
impl Eq for TypedPredicate
impl StructuralPartialEq for TypedPredicate
Auto Trait Implementations§
impl RefUnwindSafe for TypedPredicate
impl Send for TypedPredicate
impl Sync for TypedPredicate
impl Unpin for TypedPredicate
impl UnwindSafe for TypedPredicate
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