pub enum StructureDef {
Action(ActionDefinition),
DurativeAction(DurativeActionDefinition),
Derived(DerivedPredicate),
}Expand description
Variants§
Action(ActionDefinition)
DurativeAction(DurativeActionDefinition)
§Requirements
Requires Durative Actions.
Derived(DerivedPredicate)
§Requirements
Requires Derived Predicates.
Implementations§
Source§impl StructureDef
impl StructureDef
pub const fn new_action(action: ActionDefinition) -> Self
pub const fn new_durative_action(action: DurativeActionDefinition) -> Self
pub const fn new_derived(predicate: DerivedPredicate) -> Self
Trait Implementations§
Source§impl Clone for StructureDef
impl Clone for StructureDef
Source§fn clone(&self) -> StructureDef
fn clone(&self) -> StructureDef
Returns a duplicate 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 StructureDef
impl Debug for StructureDef
Source§impl From<ActionDefinition> for StructureDef
impl From<ActionDefinition> for StructureDef
Source§fn from(value: ActionDefinition) -> Self
fn from(value: ActionDefinition) -> Self
Converts to this type from the input type.
Source§impl From<DerivedPredicate> for StructureDef
impl From<DerivedPredicate> for StructureDef
Source§fn from(value: DerivedPredicate) -> Self
fn from(value: DerivedPredicate) -> Self
Converts to this type from the input type.
Source§impl From<DurativeActionDefinition> for StructureDef
impl From<DurativeActionDefinition> for StructureDef
Source§fn from(value: DurativeActionDefinition) -> Self
fn from(value: DurativeActionDefinition) -> Self
Converts to this type from the input type.
Source§impl FromIterator<StructureDef> for StructureDefs
impl FromIterator<StructureDef> for StructureDefs
Source§fn from_iter<T: IntoIterator<Item = StructureDef>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = StructureDef>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl Parser for StructureDef
Available on crate feature parser only.
impl Parser for StructureDef
Available on crate feature
parser only.Source§fn parse<'a, S: Into<Span<'a>>>(input: S) -> ParseResult<'a, Self::Item>
fn parse<'a, S: Into<Span<'a>>>(input: S) -> ParseResult<'a, Self::Item>
See parse_structure_def.
type Item = StructureDef
Source§fn parse_span(input: Span<'_>) -> ParseResult<'_, Self::Item>
fn parse_span(input: Span<'_>) -> ParseResult<'_, Self::Item>
Parses the
input into the specified Item type.Source§fn from_str(input: &str) -> Result<Self::Item, Err<ParseError<'_>>>
fn from_str(input: &str) -> Result<Self::Item, Err<ParseError<'_>>>
Uses the
Parser::parse method to parse the input and, if successful,
discards the unparsed remaining input.Source§impl PartialEq for StructureDef
impl PartialEq for StructureDef
impl StructuralPartialEq for StructureDef
Auto Trait Implementations§
impl Freeze for StructureDef
impl RefUnwindSafe for StructureDef
impl Send for StructureDef
impl Sync for StructureDef
impl Unpin for StructureDef
impl UnwindSafe for StructureDef
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