pub struct DerivedPredicate(/* private fields */);Expand description
Implementations§
Source§impl DerivedPredicate
impl DerivedPredicate
Sourcepub const fn new(formula: AtomicFormulaSkeleton, gd: GoalDescription) -> Self
pub const fn new(formula: AtomicFormulaSkeleton, gd: GoalDescription) -> Self
Creates a new derived predicate, i.e. (:derived <atomic formula skeleton> <GD>),
from the predicate and the goal description that derives it.
Sourcepub const fn predicate(&self) -> &AtomicFormulaSkeleton
pub const fn predicate(&self) -> &AtomicFormulaSkeleton
Gets the derived predicate’s atomic formula skeleton, i.e. its name and parameters.
Sourcepub const fn expression(&self) -> &GoalDescription
pub const fn expression(&self) -> &GoalDescription
Gets the goal description under which the predicate holds.
Trait Implementations§
Source§impl AsRef<AtomicFormulaSkeleton> for DerivedPredicate
impl AsRef<AtomicFormulaSkeleton> for DerivedPredicate
Source§fn as_ref(&self) -> &AtomicFormulaSkeleton
fn as_ref(&self) -> &AtomicFormulaSkeleton
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<GoalDescription> for DerivedPredicate
impl AsRef<GoalDescription> for DerivedPredicate
Source§fn as_ref(&self) -> &GoalDescription
fn as_ref(&self) -> &GoalDescription
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for DerivedPredicate
impl Clone for DerivedPredicate
Source§impl Debug for DerivedPredicate
impl Debug for DerivedPredicate
Source§impl<'de> Deserialize<'de> for DerivedPredicate
Available on crate feature serde only.
impl<'de> Deserialize<'de> for DerivedPredicate
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 From<(AtomicFormulaSkeleton, GoalDescription)> for DerivedPredicate
impl From<(AtomicFormulaSkeleton, GoalDescription)> for DerivedPredicate
Source§fn from(value: (AtomicFormulaSkeleton, GoalDescription)) -> Self
fn from(value: (AtomicFormulaSkeleton, GoalDescription)) -> 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 Parser for DerivedPredicate
Available on crate feature parser only.
impl Parser for DerivedPredicate
Available on crate feature
parser only.Source§type Item = DerivedPredicate
type Item = DerivedPredicate
The parsed value;
Self except for
DurationConstraint, which may be empty.Source§impl PartialEq for DerivedPredicate
impl PartialEq for DerivedPredicate
Source§impl Serialize for DerivedPredicate
Available on crate feature serde only.
impl Serialize for DerivedPredicate
Available on crate feature
serde only.impl StructuralPartialEq for DerivedPredicate
Source§impl Visitor<DerivedPredicate, RcDoc<'static>> for PrettyRenderer
Available on crate feature pretty only.
impl Visitor<DerivedPredicate, RcDoc<'static>> for PrettyRenderer
Available on crate feature
pretty only.Source§fn visit(&self, value: &DerivedPredicate) -> RcDoc<'static>
fn visit(&self, value: &DerivedPredicate) -> RcDoc<'static>
Visits
value and returns the result.Auto Trait Implementations§
impl Forget for DerivedPredicate
impl Freeze for DerivedPredicate
impl Move for DerivedPredicate
impl RefUnwindSafe for DerivedPredicate
impl Send for DerivedPredicate
impl Sync for DerivedPredicate
impl Unpin for DerivedPredicate
impl UnsafeUnpin for DerivedPredicate
impl UnwindSafe for DerivedPredicate
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.