pub enum InitElement {
Literal(NameLiteral),
At(Number, NameLiteral),
IsValue(BasicFunctionTerm, Number),
IsObject(BasicFunctionTerm, Name),
}
Expand description
§Usage
Used by InitElements
in Problem
.
Variants§
Literal(NameLiteral)
At(Number, NameLiteral)
§Requirements
Requires Timed Initial Literals.
IsValue(BasicFunctionTerm, Number)
§Requirements
Requires Numeric Fluents.
IsObject(BasicFunctionTerm, Name)
§Requirements
Requires Object Fluents.
Implementations§
Source§impl InitElement
impl InitElement
pub const fn new_literal(name: NameLiteral) -> Self
pub const fn new_at(time: Number, name: NameLiteral) -> Self
pub const fn new_is_value(term: BasicFunctionTerm, value: Number) -> Self
pub const fn new_is_object(term: BasicFunctionTerm, value: Name) -> Self
Trait Implementations§
Source§impl Clone for InitElement
impl Clone for InitElement
Source§fn clone(&self) -> InitElement
fn clone(&self) -> InitElement
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 InitElement
impl Debug for InitElement
Source§impl FromIterator<InitElement> for InitElements
impl FromIterator<InitElement> for InitElements
Source§fn from_iter<T: IntoIterator<Item = InitElement>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = InitElement>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl Parser for InitElement
Available on crate feature parser
only.
impl Parser for InitElement
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_init_el
.
type Item = InitElement
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 InitElement
impl PartialEq for InitElement
impl StructuralPartialEq for InitElement
Auto Trait Implementations§
impl Freeze for InitElement
impl RefUnwindSafe for InitElement
impl Send for InitElement
impl Sync for InitElement
impl Unpin for InitElement
impl UnwindSafe for InitElement
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