pub enum PhraseResult {
BooleanQuery(PhraseResultBooleanQuery),
InstanceQuery(PhraseResultInstanceQuery),
StateChange(PhraseResultStateChange),
}
Expand description
Defines the execution result of a particular Phrase
.
There are three variants:
- Boolean queries encodes the result to a boolean query (no way!);
Variants§
BooleanQuery(PhraseResultBooleanQuery)
Encodes the result to a boolean query, i.e., to:
?citizen(Amy).
query successful // <-- this
InstanceQuery(PhraseResultInstanceQuery)
Encodes the result to an instance query, i.e., to:
?- citizen.
citizen(string("Bob")) // <-- these
citizen(string("Amy")) // <-- these
StateChange(PhraseResultStateChange)
Encodes the result to phrases that induce state changes, i.e., to:
+citizen(Amy).
+citizen(string("Amy")) // <-- this
Trait Implementations§
Source§impl Clone for PhraseResult
impl Clone for PhraseResult
Source§fn clone(&self) -> PhraseResult
fn clone(&self) -> PhraseResult
Returns a copy 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 PhraseResult
impl Debug for PhraseResult
Source§impl<'de> Deserialize<'de> for PhraseResult
impl<'de> Deserialize<'de> for PhraseResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl EnumDebug for PhraseResult
impl EnumDebug for PhraseResult
Source§fn type_name() -> &'static str
fn type_name() -> &'static str
Returns the static name of the type used for EnumDebug-printing. Read more
Source§fn variant_names() -> &'static [&'static str]
fn variant_names() -> &'static [&'static str]
Returns all variants in the trait as a list of names. Read more
Source§fn variant_name(&self) -> &'static str
fn variant_name(&self) -> &'static str
Returns the static name of the variant. Read more
Source§fn variant(&self) -> EnumDebugFormatter<'_, Self>
fn variant(&self) -> EnumDebugFormatter<'_, Self>
Returns a formatter for this enum that writes its variant name. Read more
Auto Trait Implementations§
impl Freeze for PhraseResult
impl RefUnwindSafe for PhraseResult
impl Send for PhraseResult
impl Sync for PhraseResult
impl Unpin for PhraseResult
impl UnwindSafe for PhraseResult
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