pub struct KnowledgePredicate { /* private fields */ }Expand description
Namespaced predicate used by evidence, facts, and hypotheses.
Examples include http.header.x-powered-by, service.port, and
technology.framework.
Implementations§
Source§impl KnowledgePredicate
impl KnowledgePredicate
Sourcepub fn new(
namespace: impl Into<String>,
name: impl Into<String>,
) -> Result<KnowledgePredicate, ReasoningModelError>
pub fn new( namespace: impl Into<String>, name: impl Into<String>, ) -> Result<KnowledgePredicate, ReasoningModelError>
Creates a predicate from non-empty namespace and name components.
Trait Implementations§
Source§impl Clone for KnowledgePredicate
impl Clone for KnowledgePredicate
Source§fn clone(&self) -> KnowledgePredicate
fn clone(&self) -> KnowledgePredicate
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 KnowledgePredicate
impl Debug for KnowledgePredicate
Source§impl<'de> Deserialize<'de> for KnowledgePredicate
impl<'de> Deserialize<'de> for KnowledgePredicate
Source§fn deserialize<D>(
deserializer: D,
) -> Result<KnowledgePredicate, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<KnowledgePredicate, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for KnowledgePredicate
Source§impl From<PredicateDescriptor> for KnowledgePredicate
impl From<PredicateDescriptor> for KnowledgePredicate
Source§fn from(value: PredicateDescriptor) -> KnowledgePredicate
fn from(value: PredicateDescriptor) -> KnowledgePredicate
Converts to this type from the input type.
Source§impl Hash for KnowledgePredicate
impl Hash for KnowledgePredicate
Source§impl Ord for KnowledgePredicate
impl Ord for KnowledgePredicate
Source§fn cmp(&self, other: &KnowledgePredicate) -> Ordering
fn cmp(&self, other: &KnowledgePredicate) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for KnowledgePredicate
impl PartialEq for KnowledgePredicate
Source§impl PartialOrd for KnowledgePredicate
impl PartialOrd for KnowledgePredicate
Source§impl Serialize for KnowledgePredicate
impl Serialize for KnowledgePredicate
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 KnowledgePredicate
Auto Trait Implementations§
impl Freeze for KnowledgePredicate
impl RefUnwindSafe for KnowledgePredicate
impl Send for KnowledgePredicate
impl Sync for KnowledgePredicate
impl Unpin for KnowledgePredicate
impl UnsafeUnpin for KnowledgePredicate
impl UnwindSafe for KnowledgePredicate
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more