pub struct PredicateDescriptor { /* private fields */ }Expand description
A validated static name that converts to the canonical predicate contract.
Descriptors deliberately do not implement Serde. Persisted definitions
continue to use the existing { "namespace", "name" }
KnowledgePredicate representation.
Implementations§
Source§impl PredicateDescriptor
impl PredicateDescriptor
Sourcepub const fn dotted(self) -> &'static str
pub const fn dotted(self) -> &'static str
Returns the stable dotted identifier used in diagnostics.
Sourcepub fn into_knowledge(self) -> KnowledgePredicate
pub fn into_knowledge(self) -> KnowledgePredicate
Converts this descriptor to the canonical owned predicate type.
Trait Implementations§
Source§impl Clone for PredicateDescriptor
impl Clone for PredicateDescriptor
Source§fn clone(&self) -> PredicateDescriptor
fn clone(&self) -> PredicateDescriptor
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 moreimpl Copy for PredicateDescriptor
Source§impl Debug for PredicateDescriptor
impl Debug for PredicateDescriptor
impl Eq for PredicateDescriptor
Source§impl From<PredicateDescriptor> for KnowledgePredicate
impl From<PredicateDescriptor> for KnowledgePredicate
Source§fn from(value: PredicateDescriptor) -> Self
fn from(value: PredicateDescriptor) -> Self
Converts to this type from the input type.
Source§impl Hash for PredicateDescriptor
impl Hash for PredicateDescriptor
Source§impl Ord for PredicateDescriptor
impl Ord for PredicateDescriptor
Source§fn cmp(&self, other: &PredicateDescriptor) -> Ordering
fn cmp(&self, other: &PredicateDescriptor) -> 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 PredicateDescriptor
impl PartialEq for PredicateDescriptor
Source§impl PartialOrd for PredicateDescriptor
impl PartialOrd for PredicateDescriptor
impl StructuralPartialEq for PredicateDescriptor
Auto Trait Implementations§
impl Freeze for PredicateDescriptor
impl RefUnwindSafe for PredicateDescriptor
impl Send for PredicateDescriptor
impl Sync for PredicateDescriptor
impl Unpin for PredicateDescriptor
impl UnsafeUnpin for PredicateDescriptor
impl UnwindSafe for PredicateDescriptor
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
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<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.