Enum fastobo::ast::TermClause
source · pub enum TermClause {
Show 22 variants
IsAnonymous(bool),
Name(Box<UnquotedString>),
Namespace(Box<NamespaceIdent>),
AltId(Box<Ident>),
Def(Box<Definition>),
Comment(Box<UnquotedString>),
Subset(Box<SubsetIdent>),
Synonym(Box<Synonym>),
Xref(Box<Xref>),
Builtin(bool),
PropertyValue(Box<PropertyValue>),
IsA(Box<ClassIdent>),
IntersectionOf(Option<Box<RelationIdent>>, Box<ClassIdent>),
UnionOf(Box<ClassIdent>),
EquivalentTo(Box<ClassIdent>),
DisjointFrom(Box<ClassIdent>),
Relationship(Box<RelationIdent>, Box<ClassIdent>),
CreatedBy(Box<UnquotedString>),
CreationDate(Box<CreationDate>),
IsObsolete(bool),
ReplacedBy(Box<ClassIdent>),
Consider(Box<ClassIdent>),
}
Expand description
A clause appearing in a term frame.
Comparison
TermClause
implements PartialOrd
following the semantics of the OBO
specification: clauses will compare based on their serialization order
rather than on their alphabetic order; clauses of the same kind will be
ranked in the alphabetic order.
Variants§
IsAnonymous(bool)
Name(Box<UnquotedString>)
Namespace(Box<NamespaceIdent>)
AltId(Box<Ident>)
Def(Box<Definition>)
Comment(Box<UnquotedString>)
Subset(Box<SubsetIdent>)
Synonym(Box<Synonym>)
Xref(Box<Xref>)
Builtin(bool)
PropertyValue(Box<PropertyValue>)
IsA(Box<ClassIdent>)
IntersectionOf(Option<Box<RelationIdent>>, Box<ClassIdent>)
UnionOf(Box<ClassIdent>)
EquivalentTo(Box<ClassIdent>)
DisjointFrom(Box<ClassIdent>)
Relationship(Box<RelationIdent>, Box<ClassIdent>)
CreatedBy(Box<UnquotedString>)
CreationDate(Box<CreationDate>)
IsObsolete(bool)
ReplacedBy(Box<ClassIdent>)
Consider(Box<ClassIdent>)
Trait Implementations§
source§impl Clone for TermClause
impl Clone for TermClause
source§fn clone(&self) -> TermClause
fn clone(&self) -> TermClause
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 TermClause
impl Debug for TermClause
source§impl Display for TermClause
impl Display for TermClause
source§impl From<Box<CreationDate, Global>> for TermClause
impl From<Box<CreationDate, Global>> for TermClause
source§fn from(date: Box<CreationDate>) -> Self
fn from(date: Box<CreationDate>) -> Self
Converts to this type from the input type.
source§impl From<Box<Definition, Global>> for TermClause
impl From<Box<Definition, Global>> for TermClause
source§fn from(d: Box<Definition>) -> Self
fn from(d: Box<Definition>) -> Self
Converts to this type from the input type.
source§impl From<Box<LiteralPropertyValue, Global>> for TermClause
impl From<Box<LiteralPropertyValue, Global>> for TermClause
source§fn from(pv: Box<LiteralPropertyValue>) -> Self
fn from(pv: Box<LiteralPropertyValue>) -> Self
Converts to this type from the input type.
source§impl From<Box<PropertyValue, Global>> for TermClause
impl From<Box<PropertyValue, Global>> for TermClause
source§fn from(pv: Box<PropertyValue>) -> Self
fn from(pv: Box<PropertyValue>) -> Self
Converts to this type from the input type.
source§impl From<Box<ResourcePropertyValue, Global>> for TermClause
impl From<Box<ResourcePropertyValue, Global>> for TermClause
source§fn from(pv: Box<ResourcePropertyValue>) -> Self
fn from(pv: Box<ResourcePropertyValue>) -> Self
Converts to this type from the input type.
source§impl From<CreationDate> for TermClause
impl From<CreationDate> for TermClause
source§fn from(date: CreationDate) -> Self
fn from(date: CreationDate) -> Self
Converts to this type from the input type.
source§impl From<Definition> for TermClause
impl From<Definition> for TermClause
source§fn from(d: Definition) -> Self
fn from(d: Definition) -> Self
Converts to this type from the input type.
source§impl From<LiteralPropertyValue> for TermClause
impl From<LiteralPropertyValue> for TermClause
source§fn from(pv: LiteralPropertyValue) -> Self
fn from(pv: LiteralPropertyValue) -> Self
Converts to this type from the input type.
source§impl From<PropertyValue> for TermClause
impl From<PropertyValue> for TermClause
source§fn from(pv: PropertyValue) -> Self
fn from(pv: PropertyValue) -> Self
Converts to this type from the input type.
source§impl From<ResourcePropertyValue> for TermClause
impl From<ResourcePropertyValue> for TermClause
source§fn from(pv: ResourcePropertyValue) -> Self
fn from(pv: ResourcePropertyValue) -> Self
Converts to this type from the input type.
source§impl From<Synonym> for TermClause
impl From<Synonym> for TermClause
source§impl From<Xref> for TermClause
impl From<Xref> for TermClause
source§impl<'i> FromPair<'i> for TermClause
impl<'i> FromPair<'i> for TermClause
source§impl FromStr for TermClause
impl FromStr for TermClause
source§impl Hash for TermClause
impl Hash for TermClause
source§impl OboClause for TermClause
impl OboClause for TermClause
source§fn cardinality(&self) -> Cardinality
fn cardinality(&self) -> Cardinality
Get the cardinality expected for a clause variant. Read more
source§impl Ord for TermClause
impl Ord for TermClause
source§fn cmp(&self, other: &TermClause) -> Ordering
fn cmp(&self, other: &TermClause) -> 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<TermClause> for TermClause
impl PartialEq<TermClause> for TermClause
source§fn eq(&self, other: &TermClause) -> bool
fn eq(&self, other: &TermClause) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TermClause> for TermClause
impl PartialOrd<TermClause> for TermClause
source§fn partial_cmp(&self, other: &TermClause) -> Option<Ordering>
fn partial_cmp(&self, other: &TermClause) -> 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 moreimpl Eq for TermClause
impl StructuralEq for TermClause
impl StructuralPartialEq for TermClause
Auto Trait Implementations§
impl RefUnwindSafe for TermClause
impl Send for TermClause
impl Sync for TermClause
impl Unpin for TermClause
impl UnwindSafe for TermClause
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