Struct pddl_parser::domain::constant::Constant
source · pub struct Constant {
pub name: String,
pub type_: Type,
}Expand description
A constant with a type.
Fields§
§name: StringThe name of the constant.
type_: TypeThe type of the constant.
Implementations§
source§impl Constant
impl Constant
sourcepub fn parse_constants(
input: TokenStream<'_>
) -> IResult<TokenStream<'_>, Vec<Constant>, ParserError>
pub fn parse_constants( input: TokenStream<'_> ) -> IResult<TokenStream<'_>, Vec<Constant>, ParserError>
Parse a list of constants from a token stream.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Constant
impl<'de> Deserialize<'de> for Constant
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 Ord for Constant
impl Ord for Constant
source§impl PartialEq for Constant
impl PartialEq for Constant
source§impl PartialOrd for Constant
impl PartialOrd for Constant
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 moreimpl Eq for Constant
impl StructuralPartialEq for Constant
Auto Trait Implementations§
impl RefUnwindSafe for Constant
impl Send for Constant
impl Sync for Constant
impl Unpin for Constant
impl UnwindSafe for Constant
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