Enum fastobo::ast::TypedefClause
source · pub enum TypedefClause {
Show 41 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>),
PropertyValue(Box<PropertyValue>),
Domain(Box<ClassIdent>),
Range(Box<ClassIdent>),
Builtin(bool),
HoldsOverChain(Box<RelationIdent>, Box<RelationIdent>),
IsAntiSymmetric(bool),
IsCyclic(bool),
IsReflexive(bool),
IsSymmetric(bool),
IsAsymmetric(bool),
IsTransitive(bool),
IsFunctional(bool),
IsInverseFunctional(bool),
IsA(Box<RelationIdent>),
IntersectionOf(Box<RelationIdent>),
UnionOf(Box<RelationIdent>),
EquivalentTo(Box<RelationIdent>),
DisjointFrom(Box<RelationIdent>),
InverseOf(Box<RelationIdent>),
TransitiveOver(Box<RelationIdent>),
EquivalentToChain(Box<RelationIdent>, Box<RelationIdent>),
DisjointOver(Box<RelationIdent>),
Relationship(Box<RelationIdent>, Box<RelationIdent>),
IsObsolete(bool),
ReplacedBy(Box<RelationIdent>),
Consider(Box<Ident>),
CreatedBy(Box<UnquotedString>),
CreationDate(Box<CreationDate>),
ExpandAssertionTo(Box<QuotedString>, Box<XrefList>),
ExpandExpressionTo(Box<QuotedString>, Box<XrefList>),
IsMetadataTag(bool),
IsClassLevel(bool),
}
Expand description
A clause appearing in a typedef frame.
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>)
PropertyValue(Box<PropertyValue>)
Domain(Box<ClassIdent>)
Range(Box<ClassIdent>)
Builtin(bool)
HoldsOverChain(Box<RelationIdent>, Box<RelationIdent>)
IsAntiSymmetric(bool)
IsCyclic(bool)
IsReflexive(bool)
IsSymmetric(bool)
IsAsymmetric(bool)
IsTransitive(bool)
IsFunctional(bool)
IsInverseFunctional(bool)
IsA(Box<RelationIdent>)
IntersectionOf(Box<RelationIdent>)
UnionOf(Box<RelationIdent>)
EquivalentTo(Box<RelationIdent>)
DisjointFrom(Box<RelationIdent>)
InverseOf(Box<RelationIdent>)
TransitiveOver(Box<RelationIdent>)
EquivalentToChain(Box<RelationIdent>, Box<RelationIdent>)
DisjointOver(Box<RelationIdent>)
Relationship(Box<RelationIdent>, Box<RelationIdent>)
IsObsolete(bool)
ReplacedBy(Box<RelationIdent>)
Consider(Box<Ident>)
CreatedBy(Box<UnquotedString>)
CreationDate(Box<CreationDate>)
ExpandAssertionTo(Box<QuotedString>, Box<XrefList>)
ExpandExpressionTo(Box<QuotedString>, Box<XrefList>)
IsMetadataTag(bool)
IsClassLevel(bool)
Trait Implementations§
source§impl Clone for TypedefClause
impl Clone for TypedefClause
source§fn clone(&self) -> TypedefClause
fn clone(&self) -> TypedefClause
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 TypedefClause
impl Debug for TypedefClause
source§impl Display for TypedefClause
impl Display for TypedefClause
source§impl From<Box<CreationDate, Global>> for TypedefClause
impl From<Box<CreationDate, Global>> for TypedefClause
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 TypedefClause
impl From<Box<Definition, Global>> for TypedefClause
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 TypedefClause
impl From<Box<LiteralPropertyValue, Global>> for TypedefClause
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 TypedefClause
impl From<Box<PropertyValue, Global>> for TypedefClause
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 TypedefClause
impl From<Box<ResourcePropertyValue, Global>> for TypedefClause
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 TypedefClause
impl From<CreationDate> for TypedefClause
source§fn from(date: CreationDate) -> Self
fn from(date: CreationDate) -> Self
Converts to this type from the input type.
source§impl From<Definition> for TypedefClause
impl From<Definition> for TypedefClause
source§fn from(d: Definition) -> Self
fn from(d: Definition) -> Self
Converts to this type from the input type.
source§impl From<LiteralPropertyValue> for TypedefClause
impl From<LiteralPropertyValue> for TypedefClause
source§fn from(pv: LiteralPropertyValue) -> Self
fn from(pv: LiteralPropertyValue) -> Self
Converts to this type from the input type.
source§impl From<PropertyValue> for TypedefClause
impl From<PropertyValue> for TypedefClause
source§fn from(pv: PropertyValue) -> Self
fn from(pv: PropertyValue) -> Self
Converts to this type from the input type.
source§impl From<ResourcePropertyValue> for TypedefClause
impl From<ResourcePropertyValue> for TypedefClause
source§fn from(pv: ResourcePropertyValue) -> Self
fn from(pv: ResourcePropertyValue) -> Self
Converts to this type from the input type.
source§impl From<Synonym> for TypedefClause
impl From<Synonym> for TypedefClause
source§impl From<Xref> for TypedefClause
impl From<Xref> for TypedefClause
source§impl<'i> FromPair<'i> for TypedefClause
impl<'i> FromPair<'i> for TypedefClause
source§impl FromStr for TypedefClause
impl FromStr for TypedefClause
source§impl Hash for TypedefClause
impl Hash for TypedefClause
source§impl OboClause for TypedefClause
impl OboClause for TypedefClause
source§fn cardinality(&self) -> Cardinality
fn cardinality(&self) -> Cardinality
Get the cardinality expected for a clause variant. Read more
source§impl Ord for TypedefClause
impl Ord for TypedefClause
source§fn cmp(&self, other: &TypedefClause) -> Ordering
fn cmp(&self, other: &TypedefClause) -> 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<TypedefClause> for TypedefClause
impl PartialEq<TypedefClause> for TypedefClause
source§fn eq(&self, other: &TypedefClause) -> bool
fn eq(&self, other: &TypedefClause) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TypedefClause> for TypedefClause
impl PartialOrd<TypedefClause> for TypedefClause
source§fn partial_cmp(&self, other: &TypedefClause) -> Option<Ordering>
fn partial_cmp(&self, other: &TypedefClause) -> 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 TypedefClause
impl StructuralEq for TypedefClause
impl StructuralPartialEq for TypedefClause
Auto Trait Implementations§
impl RefUnwindSafe for TypedefClause
impl Send for TypedefClause
impl Sync for TypedefClause
impl Unpin for TypedefClause
impl UnwindSafe for TypedefClause
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