pub struct PropertyId(/* private fields */);Expand description
A property name local to a metadata vocabulary.
Implementations§
Source§impl PropertyId
impl PropertyId
Sourcepub fn new(value: impl Into<String>) -> Result<Self>
pub fn new(value: impl Into<String>) -> Result<Self>
Creates a bounded vocabulary-local property identifier.
§Errors
Returns ErrorKind::InvalidArgument for empty, oversized, or
whitespace/control-containing input.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the identifier and returns its string.
Trait Implementations§
Source§impl Clone for PropertyId
impl Clone for PropertyId
Source§fn clone(&self) -> PropertyId
fn clone(&self) -> PropertyId
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 PropertyId
impl Debug for PropertyId
impl Eq for PropertyId
Source§impl Hash for PropertyId
impl Hash for PropertyId
Source§impl Ord for PropertyId
impl Ord for PropertyId
Source§fn cmp(&self, other: &PropertyId) -> Ordering
fn cmp(&self, other: &PropertyId) -> 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 PropertyId
impl PartialEq for PropertyId
Source§fn eq(&self, other: &PropertyId) -> bool
fn eq(&self, other: &PropertyId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PropertyId
impl PartialOrd for PropertyId
impl StructuralPartialEq for PropertyId
Auto Trait Implementations§
impl Freeze for PropertyId
impl RefUnwindSafe for PropertyId
impl Send for PropertyId
impl Sync for PropertyId
impl Unpin for PropertyId
impl UnsafeUnpin for PropertyId
impl UnwindSafe for PropertyId
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