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)
A literal that holds in the initial state, e.g. (at truck depot) or (not (busy truck)).
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
Sourcepub const fn new_literal(name: NameLiteral) -> Self
pub const fn new_literal(name: NameLiteral) -> Self
Creates a new initial literal.
Sourcepub const fn new_at(time: Number, name: NameLiteral) -> Self
pub const fn new_at(time: Number, name: NameLiteral) -> Self
Creates a new timed initial literal, i.e. (at <number> <literal (name)>),
which becomes true at the given time.
Sourcepub const fn new_is_value(term: BasicFunctionTerm, value: Number) -> Self
pub const fn new_is_value(term: BasicFunctionTerm, value: Number) -> Self
Creates a new numeric fluent assignment, i.e. (= <basic-function-term> <number>).
Sourcepub const fn new_is_object(term: BasicFunctionTerm, value: Name) -> Self
pub const fn new_is_object(term: BasicFunctionTerm, value: Name) -> Self
Creates a new object fluent assignment, i.e. (= <basic-function-term> <name>).
Trait Implementations§
Source§impl Clone for InitElement
impl Clone for InitElement
Source§impl Debug for InitElement
impl Debug for InitElement
Source§impl<'de> Deserialize<'de> for InitElement
Available on crate feature serde only.
impl<'de> Deserialize<'de> for InitElement
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
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§type Item = InitElement
type Item = InitElement
The parsed value;
Self except for
DurationConstraint, which may be empty.Source§impl PartialEq for InitElement
impl PartialEq for InitElement
Source§impl Serialize for InitElement
Available on crate feature serde only.
impl Serialize for InitElement
Available on crate feature
serde only.impl StructuralPartialEq for InitElement
Source§impl Visitor<InitElement, RcDoc<'static>> for PrettyRenderer
Available on crate feature pretty only.
impl Visitor<InitElement, RcDoc<'static>> for PrettyRenderer
Available on crate feature
pretty only.Source§fn visit(&self, value: &InitElement) -> RcDoc<'static>
fn visit(&self, value: &InitElement) -> RcDoc<'static>
Visits
value and returns the result.Auto Trait Implementations§
impl Forget for InitElement
impl Freeze for InitElement
impl Move for InitElement
impl RefUnwindSafe for InitElement
impl Send for InitElement
impl Sync for InitElement
impl Unpin for InitElement
impl UnsafeUnpin for InitElement
impl UnwindSafe for InitElement
Blanket Implementations§
Source§impl<V, T, O> AcceptMut<V, T, O> for Twhere
V: VisitorMut<T, O>,
impl<V, T, O> AcceptMut<V, T, O> for Twhere
V: VisitorMut<T, O>,
Source§fn accept_mut(&self, v: &mut V) -> O
fn accept_mut(&self, v: &mut V) -> O
Lets the mutable visitor
v visit self.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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Pretty for Twhere
T: PrettyVisit,
impl<T> Pretty for Twhere
T: PrettyVisit,
Source§impl<T> PrettyVisit for T
impl<T> PrettyVisit for T
Source§fn to_doc(&self, r: &PrettyRenderer) -> RcDoc<'static>
fn to_doc(&self, r: &PrettyRenderer) -> RcDoc<'static>
Available on crate feature
pretty only.Builds the document for
self with the renderer r.