Struct horned_owl::model::HasKey
source · pub struct HasKey<A> {
pub ce: ClassExpression<A>,
pub vpe: Vec<PropertyExpression<A>>,
}
Expand description
A key
An individual i
which is of type ce
can be uniquely
identified by pe
. Keys can only be applied to individuals
which are explicitly named in the ontology, not those that are
inferred.
See also: Keys
Fields§
§ce: ClassExpression<A>
§vpe: Vec<PropertyExpression<A>>
Implementations§
source§impl<A: ForIRI> HasKey<A>
impl<A: ForIRI> HasKey<A>
pub fn new(ce: ClassExpression<A>, vpe: Vec<PropertyExpression<A>>) -> HasKey<A>
Trait Implementations§
source§impl<A: ForIRI> AsFunctional<A> for HasKey<A>
impl<A: ForIRI> AsFunctional<A> for HasKey<A>
source§fn as_functional(&self) -> Functional<'_, Self, A>
fn as_functional(&self) -> Functional<'_, Self, A>
Get a handle for displaying the element in functional syntax. Read more
source§fn as_functional_with_prefixes<'t>(
&'t self,
prefix: &'t PrefixMapping
) -> Functional<'t, Self, A>
fn as_functional_with_prefixes<'t>( &'t self, prefix: &'t PrefixMapping ) -> Functional<'t, Self, A>
Get a handle for displaying the element, using the given context. Read more
source§impl<A: ForIRI> From<HasKey<A>> for AnnotatedComponent<A>
impl<A: ForIRI> From<HasKey<A>> for AnnotatedComponent<A>
source§fn from(ax: HasKey<A>) -> AnnotatedComponent<A>
fn from(ax: HasKey<A>) -> AnnotatedComponent<A>
Converts to this type from the input type.
source§impl<A: ForIRI> HigherKinded for HasKey<A>
impl<A: ForIRI> HigherKinded for HasKey<A>
source§impl<A: Ord> Ord for HasKey<A>
impl<A: Ord> Ord for HasKey<A>
source§impl<A: PartialEq> PartialEq for HasKey<A>
impl<A: PartialEq> PartialEq for HasKey<A>
source§impl<A: PartialOrd> PartialOrd for HasKey<A>
impl<A: PartialOrd> PartialOrd for HasKey<A>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<A: Eq> Eq for HasKey<A>
impl<A> StructuralPartialEq for HasKey<A>
Auto Trait Implementations§
impl<A> Freeze for HasKey<A>where
A: Freeze,
impl<A> RefUnwindSafe for HasKey<A>where
A: RefUnwindSafe,
impl<A> Send for HasKey<A>where
A: Send,
impl<A> Sync for HasKey<A>where
A: Sync,
impl<A> Unpin for HasKey<A>where
A: Unpin,
impl<A> UnwindSafe for HasKey<A>where
A: UnwindSafe,
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.