pub struct DerivedPredicate(/* private fields */);
Expand description
Implementations§
Source§impl DerivedPredicate
impl DerivedPredicate
pub const fn new(formula: AtomicFormulaSkeleton, gd: GoalDefinition) -> Self
pub const fn predicate(&self) -> &AtomicFormulaSkeleton
pub const fn expression(&self) -> &GoalDefinition
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<GoalDefinition> for DerivedPredicate
impl AsRef<GoalDefinition> for DerivedPredicate
Source§fn as_ref(&self) -> &GoalDefinition
fn as_ref(&self) -> &GoalDefinition
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for DerivedPredicate
impl Clone for DerivedPredicate
Source§fn clone(&self) -> DerivedPredicate
fn clone(&self) -> DerivedPredicate
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 DerivedPredicate
impl Debug for DerivedPredicate
Source§impl From<(AtomicFormulaSkeleton, GoalDefinition)> for DerivedPredicate
impl From<(AtomicFormulaSkeleton, GoalDefinition)> for DerivedPredicate
Source§fn from(value: (AtomicFormulaSkeleton, GoalDefinition)) -> Self
fn from(value: (AtomicFormulaSkeleton, GoalDefinition)) -> 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.type Item = DerivedPredicate
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 DerivedPredicate
impl PartialEq for DerivedPredicate
impl StructuralPartialEq for DerivedPredicate
Auto Trait Implementations§
impl Freeze for DerivedPredicate
impl RefUnwindSafe for DerivedPredicate
impl Send for DerivedPredicate
impl Sync for DerivedPredicate
impl Unpin for DerivedPredicate
impl UnwindSafe for DerivedPredicate
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