pub struct MetadataProperty { /* private fields */ }Expand description
A globally meaningful property formed from a vocabulary and local name.
Implementations§
Source§impl MetadataProperty
impl MetadataProperty
Sourcepub const fn new(vocabulary: VocabularyId, property: PropertyId) -> Self
pub const fn new(vocabulary: VocabularyId, property: PropertyId) -> Self
Creates a metadata property identity.
Sourcepub const fn vocabulary(&self) -> &VocabularyId
pub const fn vocabulary(&self) -> &VocabularyId
Returns the vocabulary or namespace identity.
Sourcepub const fn property(&self) -> &PropertyId
pub const fn property(&self) -> &PropertyId
Returns the vocabulary-local property identity.
Trait Implementations§
Source§impl Clone for MetadataProperty
impl Clone for MetadataProperty
Source§fn clone(&self) -> MetadataProperty
fn clone(&self) -> MetadataProperty
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MetadataProperty
impl Debug for MetadataProperty
impl Eq for MetadataProperty
Source§impl Hash for MetadataProperty
impl Hash for MetadataProperty
Source§impl Ord for MetadataProperty
impl Ord for MetadataProperty
Source§fn cmp(&self, other: &MetadataProperty) -> Ordering
fn cmp(&self, other: &MetadataProperty) -> Ordering
1.21.0 (const: unstable) · 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 MetadataProperty
impl PartialEq for MetadataProperty
Source§fn eq(&self, other: &MetadataProperty) -> bool
fn eq(&self, other: &MetadataProperty) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MetadataProperty
impl PartialOrd for MetadataProperty
impl StructuralPartialEq for MetadataProperty
Auto Trait Implementations§
impl Freeze for MetadataProperty
impl RefUnwindSafe for MetadataProperty
impl Send for MetadataProperty
impl Sync for MetadataProperty
impl Unpin for MetadataProperty
impl UnsafeUnpin for MetadataProperty
impl UnwindSafe for MetadataProperty
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