pub struct OntologyAxiom { /* private fields */ }Expand description
One semantic statement between two registered concepts.
Implementations§
Source§impl OntologyAxiom
impl OntologyAxiom
Sourcepub fn new(
subject: ConceptId,
relation: RelationTypeId,
object: ConceptId,
) -> Self
pub fn new( subject: ConceptId, relation: RelationTypeId, object: ConceptId, ) -> Self
Creates an axiom. Registration validates referenced concepts and type.
Sourcepub fn relation(&self) -> &RelationTypeId
pub fn relation(&self) -> &RelationTypeId
Returns the semantic relation type.
Trait Implementations§
Source§impl Clone for OntologyAxiom
impl Clone for OntologyAxiom
Source§fn clone(&self) -> OntologyAxiom
fn clone(&self) -> OntologyAxiom
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 OntologyAxiom
impl Debug for OntologyAxiom
Source§impl<'de> Deserialize<'de> for OntologyAxiom
impl<'de> Deserialize<'de> for OntologyAxiom
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
impl Eq for OntologyAxiom
Source§impl Hash for OntologyAxiom
impl Hash for OntologyAxiom
Source§impl Ord for OntologyAxiom
impl Ord for OntologyAxiom
Source§fn cmp(&self, other: &OntologyAxiom) -> Ordering
fn cmp(&self, other: &OntologyAxiom) -> 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 OntologyAxiom
impl PartialEq for OntologyAxiom
Source§impl PartialOrd for OntologyAxiom
impl PartialOrd for OntologyAxiom
Source§impl Serialize for OntologyAxiom
impl Serialize for OntologyAxiom
impl StructuralPartialEq for OntologyAxiom
Auto Trait Implementations§
impl Freeze for OntologyAxiom
impl RefUnwindSafe for OntologyAxiom
impl Send for OntologyAxiom
impl Sync for OntologyAxiom
impl Unpin for OntologyAxiom
impl UnsafeUnpin for OntologyAxiom
impl UnwindSafe for OntologyAxiom
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<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.