Enum fastobo::ast::PropertyValue
source · pub enum PropertyValue {
Resource(Box<ResourcePropertyValue>),
Literal(Box<LiteralPropertyValue>),
}
Expand description
A clause value binding a property to a value in the relevant entity.
Variants§
Resource(Box<ResourcePropertyValue>)
A property-value binding where the value is specified with an ID.
Literal(Box<LiteralPropertyValue>)
A property-value binding where the value is given by a typed literal.
Implementations§
source§impl PropertyValue
impl PropertyValue
sourcepub fn property(&self) -> &RelationIdent
pub fn property(&self) -> &RelationIdent
Get the identifier of the declared property annotation.
Trait Implementations§
source§impl Clone for PropertyValue
impl Clone for PropertyValue
source§fn clone(&self) -> PropertyValue
fn clone(&self) -> PropertyValue
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 PropertyValue
impl Debug for PropertyValue
source§impl Display for PropertyValue
impl Display for PropertyValue
source§impl From<LiteralPropertyValue> for PropertyValue
impl From<LiteralPropertyValue> for PropertyValue
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<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<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 PropertyValue
impl From<ResourcePropertyValue> for PropertyValue
source§fn from(pv: ResourcePropertyValue) -> Self
fn from(pv: ResourcePropertyValue) -> Self
Converts to this type from the input type.
source§impl<'i> FromPair<'i> for PropertyValue
impl<'i> FromPair<'i> for PropertyValue
source§impl FromStr for PropertyValue
impl FromStr for PropertyValue
source§impl Hash for PropertyValue
impl Hash for PropertyValue
source§impl Ord for PropertyValue
impl Ord for PropertyValue
source§fn cmp(&self, other: &PropertyValue) -> Ordering
fn cmp(&self, other: &PropertyValue) -> 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<PropertyValue> for PropertyValue
impl PartialEq<PropertyValue> for PropertyValue
source§fn eq(&self, other: &PropertyValue) -> bool
fn eq(&self, other: &PropertyValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PropertyValue> for PropertyValue
impl PartialOrd<PropertyValue> for PropertyValue
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 PropertyValue
impl StructuralEq for PropertyValue
impl StructuralPartialEq for PropertyValue
Auto Trait Implementations§
impl RefUnwindSafe for PropertyValue
impl Send for PropertyValue
impl Sync for PropertyValue
impl Unpin for PropertyValue
impl UnwindSafe for PropertyValue
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