Enum fastobo::ast::InstanceClause
source · pub enum InstanceClause {
Show 17 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>),
InstanceOf(Box<ClassIdent>),
Relationship(Box<RelationIdent>, Box<Ident>),
CreatedBy(Box<UnquotedString>),
CreationDate(Box<CreationDate>),
IsObsolete(bool),
ReplacedBy(Box<InstanceIdent>),
Consider(Box<Ident>),
}
Expand description
A clause appearing in an instance 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>)
InstanceOf(Box<ClassIdent>)
Relationship(Box<RelationIdent>, Box<Ident>)
CreatedBy(Box<UnquotedString>)
CreationDate(Box<CreationDate>)
IsObsolete(bool)
ReplacedBy(Box<InstanceIdent>)
Consider(Box<Ident>)
Trait Implementations§
source§impl Clone for InstanceClause
impl Clone for InstanceClause
source§fn clone(&self) -> InstanceClause
fn clone(&self) -> InstanceClause
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 InstanceClause
impl Debug for InstanceClause
source§impl Display for InstanceClause
impl Display for InstanceClause
source§impl From<Box<CreationDate, Global>> for InstanceClause
impl From<Box<CreationDate, Global>> for InstanceClause
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 InstanceClause
impl From<Box<Definition, Global>> for InstanceClause
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 InstanceClause
impl From<Box<LiteralPropertyValue, Global>> for InstanceClause
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 InstanceClause
impl From<Box<PropertyValue, Global>> for InstanceClause
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 InstanceClause
impl From<Box<ResourcePropertyValue, Global>> for InstanceClause
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 InstanceClause
impl From<CreationDate> for InstanceClause
source§fn from(date: CreationDate) -> Self
fn from(date: CreationDate) -> Self
Converts to this type from the input type.
source§impl From<Definition> for InstanceClause
impl From<Definition> for InstanceClause
source§fn from(d: Definition) -> Self
fn from(d: Definition) -> Self
Converts to this type from the input type.
source§impl From<LiteralPropertyValue> for InstanceClause
impl From<LiteralPropertyValue> for InstanceClause
source§fn from(pv: LiteralPropertyValue) -> Self
fn from(pv: LiteralPropertyValue) -> Self
Converts to this type from the input type.
source§impl From<PropertyValue> for InstanceClause
impl From<PropertyValue> for InstanceClause
source§fn from(pv: PropertyValue) -> Self
fn from(pv: PropertyValue) -> Self
Converts to this type from the input type.
source§impl From<ResourcePropertyValue> for InstanceClause
impl From<ResourcePropertyValue> for InstanceClause
source§fn from(pv: ResourcePropertyValue) -> Self
fn from(pv: ResourcePropertyValue) -> Self
Converts to this type from the input type.
source§impl From<Synonym> for InstanceClause
impl From<Synonym> for InstanceClause
source§impl From<Xref> for InstanceClause
impl From<Xref> for InstanceClause
source§impl<'i> FromPair<'i> for InstanceClause
impl<'i> FromPair<'i> for InstanceClause
source§impl FromStr for InstanceClause
impl FromStr for InstanceClause
source§impl Hash for InstanceClause
impl Hash for InstanceClause
source§impl OboClause for InstanceClause
impl OboClause for InstanceClause
source§fn cardinality(&self) -> Cardinality
fn cardinality(&self) -> Cardinality
Get the cardinality expected for a clause variant. Read more
source§impl Ord for InstanceClause
impl Ord for InstanceClause
source§fn cmp(&self, other: &InstanceClause) -> Ordering
fn cmp(&self, other: &InstanceClause) -> 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<InstanceClause> for InstanceClause
impl PartialEq<InstanceClause> for InstanceClause
source§fn eq(&self, other: &InstanceClause) -> bool
fn eq(&self, other: &InstanceClause) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<InstanceClause> for InstanceClause
impl PartialOrd<InstanceClause> for InstanceClause
source§fn partial_cmp(&self, other: &InstanceClause) -> Option<Ordering>
fn partial_cmp(&self, other: &InstanceClause) -> 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 InstanceClause
impl StructuralEq for InstanceClause
impl StructuralPartialEq for InstanceClause
Auto Trait Implementations§
impl RefUnwindSafe for InstanceClause
impl Send for InstanceClause
impl Sync for InstanceClause
impl Unpin for InstanceClause
impl UnwindSafe for InstanceClause
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