Struct pddl_parser::domain::typed_parameter::TypedParameter
source · pub struct TypedParameter {
pub name: String,
pub type_: Type,
}Expand description
A parameter with a type.
Fields§
§name: StringThe name of the parameter.
type_: TypeThe type of the parameter. If not specified, the type is object.
Implementations§
source§impl TypedParameter
impl TypedParameter
sourcepub fn parse_typed_parameters(
input: TokenStream<'_>
) -> IResult<TokenStream<'_>, Vec<TypedParameter>, ParserError>
pub fn parse_typed_parameters( input: TokenStream<'_> ) -> IResult<TokenStream<'_>, Vec<TypedParameter>, ParserError>
Parse a list of typed parameters from a token stream.
Trait Implementations§
source§impl Clone for TypedParameter
impl Clone for TypedParameter
source§fn clone(&self) -> TypedParameter
fn clone(&self) -> TypedParameter
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 TypedParameter
impl Debug for TypedParameter
source§impl<'de> Deserialize<'de> for TypedParameter
impl<'de> Deserialize<'de> for TypedParameter
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 TypedParameter
impl Hash for TypedParameter
source§impl Ord for TypedParameter
impl Ord for TypedParameter
source§fn cmp(&self, other: &TypedParameter) -> Ordering
fn cmp(&self, other: &TypedParameter) -> 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 TypedParameter
impl PartialEq for TypedParameter
source§fn eq(&self, other: &TypedParameter) -> bool
fn eq(&self, other: &TypedParameter) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for TypedParameter
impl PartialOrd for TypedParameter
source§fn partial_cmp(&self, other: &TypedParameter) -> Option<Ordering>
fn partial_cmp(&self, other: &TypedParameter) -> 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 TypedParameter
impl Serialize for TypedParameter
impl Eq for TypedParameter
impl StructuralPartialEq for TypedParameter
Auto Trait Implementations§
impl RefUnwindSafe for TypedParameter
impl Send for TypedParameter
impl Sync for TypedParameter
impl Unpin for TypedParameter
impl UnwindSafe for TypedParameter
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