pub enum EngineLogicalTerm {
Variable(String),
Constant(String),
Description(String),
Unspecified,
Number(f64),
}Expand description
A logical term — the typed representation of an FOL argument.
Variants§
Variable(String)
A bound or free variable (e.g., Skolem variables, universally quantified vars).
Constant(String)
A ground constant (e.g., entity names from la).
Description(String)
An opaque description reference (from le determiner).
Unspecified
Unspecified placeholder (from zo'e).
Number(f64)
Numeric literal (from li + PA).
Implementations§
Source§impl LogicalTerm
impl LogicalTerm
Sourcepub fn display(&self) -> String
pub fn display(&self) -> String
Human-readable rendering of a logical term (UI labels / witness display).
Ported from the former nibli-protocol wire-term display.
Sourcepub fn trace_display(&self) -> String
pub fn trace_display(&self) -> String
Compact textual rendering used in CLI proof traces.
Ported from the former nibli-protocol wire-term trace_display.
Trait Implementations§
Source§impl Clone for LogicalTerm
impl Clone for LogicalTerm
Source§fn clone(&self) -> LogicalTerm
fn clone(&self) -> LogicalTerm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LogicalTerm
impl Debug for LogicalTerm
Source§impl<'de> Deserialize<'de> for LogicalTerm
impl<'de> Deserialize<'de> for LogicalTerm
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LogicalTerm, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LogicalTerm, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LogicalTerm
impl PartialEq for LogicalTerm
Source§impl Serialize for LogicalTerm
impl Serialize for LogicalTerm
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LogicalTerm
Auto Trait Implementations§
impl Freeze for LogicalTerm
impl RefUnwindSafe for LogicalTerm
impl Send for LogicalTerm
impl Sync for LogicalTerm
impl Unpin for LogicalTerm
impl UnsafeUnpin for LogicalTerm
impl UnwindSafe for LogicalTerm
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