Enum horned_owl::model::NamedEntityKind
source · pub enum NamedEntityKind {
Class,
Datatype,
ObjectProperty,
DataProperty,
AnnotationProperty,
NamedIndividual,
Variable,
}
Expand description
Unit tuple for the kind of a named entity in OWL2 and SWRL.
See also NamedOWLEntityKind
for only those entities in OWL2
Variants§
Implementations§
source§impl NamedEntityKind
impl NamedEntityKind
pub fn as_owl(self) -> Option<NamedOWLEntityKind>
Trait Implementations§
source§impl Clone for NamedEntityKind
impl Clone for NamedEntityKind
source§fn clone(&self) -> NamedEntityKind
fn clone(&self) -> NamedEntityKind
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 NamedEntityKind
impl Debug for NamedEntityKind
source§impl<A: ForIRI> From<AnnotationProperty<A>> for NamedEntityKind
impl<A: ForIRI> From<AnnotationProperty<A>> for NamedEntityKind
source§fn from(_n: AnnotationProperty<A>) -> NamedEntityKind
fn from(_n: AnnotationProperty<A>) -> NamedEntityKind
Converts to this type from the input type.
source§impl<A: ForIRI> From<Class<A>> for NamedEntityKind
impl<A: ForIRI> From<Class<A>> for NamedEntityKind
source§fn from(_n: Class<A>) -> NamedEntityKind
fn from(_n: Class<A>) -> NamedEntityKind
Converts to this type from the input type.
source§impl<A: ForIRI> From<DataProperty<A>> for NamedEntityKind
impl<A: ForIRI> From<DataProperty<A>> for NamedEntityKind
source§fn from(_n: DataProperty<A>) -> NamedEntityKind
fn from(_n: DataProperty<A>) -> NamedEntityKind
Converts to this type from the input type.
source§impl<A: ForIRI> From<Datatype<A>> for NamedEntityKind
impl<A: ForIRI> From<Datatype<A>> for NamedEntityKind
source§fn from(_n: Datatype<A>) -> NamedEntityKind
fn from(_n: Datatype<A>) -> NamedEntityKind
Converts to this type from the input type.
source§impl<A: ForIRI> From<NamedIndividual<A>> for NamedEntityKind
impl<A: ForIRI> From<NamedIndividual<A>> for NamedEntityKind
source§fn from(_n: NamedIndividual<A>) -> NamedEntityKind
fn from(_n: NamedIndividual<A>) -> NamedEntityKind
Converts to this type from the input type.
source§impl From<NamedOWLEntityKind> for NamedEntityKind
impl From<NamedOWLEntityKind> for NamedEntityKind
source§fn from(value: NamedOWLEntityKind) -> NamedEntityKind
fn from(value: NamedOWLEntityKind) -> NamedEntityKind
Converts to this type from the input type.
source§impl<A: ForIRI> From<ObjectProperty<A>> for NamedEntityKind
impl<A: ForIRI> From<ObjectProperty<A>> for NamedEntityKind
source§fn from(_n: ObjectProperty<A>) -> NamedEntityKind
fn from(_n: ObjectProperty<A>) -> NamedEntityKind
Converts to this type from the input type.
source§impl<A: ForIRI> From<Variable<A>> for NamedEntityKind
impl<A: ForIRI> From<Variable<A>> for NamedEntityKind
source§fn from(_n: Variable<A>) -> NamedEntityKind
fn from(_n: Variable<A>) -> NamedEntityKind
Converts to this type from the input type.
source§impl Hash for NamedEntityKind
impl Hash for NamedEntityKind
source§impl Ord for NamedEntityKind
impl Ord for NamedEntityKind
source§fn cmp(&self, other: &NamedEntityKind) -> Ordering
fn cmp(&self, other: &NamedEntityKind) -> Ordering
1.21.0 · 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 NamedEntityKind
impl PartialEq for NamedEntityKind
source§fn eq(&self, other: &NamedEntityKind) -> bool
fn eq(&self, other: &NamedEntityKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NamedEntityKind
impl PartialOrd for NamedEntityKind
source§fn partial_cmp(&self, other: &NamedEntityKind) -> Option<Ordering>
fn partial_cmp(&self, other: &NamedEntityKind) -> Option<Ordering>
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 moresource§impl TryFrom<NamedEntityKind> for NamedOWLEntityKind
impl TryFrom<NamedEntityKind> for NamedOWLEntityKind
impl Copy for NamedEntityKind
impl Eq for NamedEntityKind
impl StructuralPartialEq for NamedEntityKind
Auto Trait Implementations§
impl Freeze for NamedEntityKind
impl RefUnwindSafe for NamedEntityKind
impl Send for NamedEntityKind
impl Sync for NamedEntityKind
impl Unpin for NamedEntityKind
impl UnwindSafe for NamedEntityKind
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.