pub struct MemoryDimensionIdentity { /* private fields */ }Implementations§
Source§impl MemoryDimensionIdentity
impl MemoryDimensionIdentity
pub fn new( about: impl Into<String>, dimension_id: impl Into<String>, ) -> Result<Self, DomainError>
pub fn parse(value: &str) -> Option<Self>
Sourcepub fn resolve(about: &str, value: &str) -> Option<Self>
pub fn resolve(about: &str, value: &str) -> Option<Self>
Resolve value against about, whether it arrives bare or already
namespaced. Reads hand out the namespaced form, so both forms reach
writers; wrapping an already-namespaced id a second time would name a
different dimension that reads back as the intended one. An id
namespaced for another about is not this about’s to reinterpret.
pub fn node_id(&self) -> String
pub fn about(&self) -> &str
pub fn dimension_id(&self) -> &str
Trait Implementations§
Source§impl Clone for MemoryDimensionIdentity
impl Clone for MemoryDimensionIdentity
Source§fn clone(&self) -> MemoryDimensionIdentity
fn clone(&self) -> MemoryDimensionIdentity
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 MemoryDimensionIdentity
impl Debug for MemoryDimensionIdentity
impl Eq for MemoryDimensionIdentity
Source§impl Ord for MemoryDimensionIdentity
impl Ord for MemoryDimensionIdentity
Source§fn cmp(&self, other: &MemoryDimensionIdentity) -> Ordering
fn cmp(&self, other: &MemoryDimensionIdentity) -> 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MemoryDimensionIdentity
impl PartialEq for MemoryDimensionIdentity
Source§impl PartialOrd for MemoryDimensionIdentity
impl PartialOrd for MemoryDimensionIdentity
impl StructuralPartialEq for MemoryDimensionIdentity
Auto Trait Implementations§
impl Freeze for MemoryDimensionIdentity
impl RefUnwindSafe for MemoryDimensionIdentity
impl Send for MemoryDimensionIdentity
impl Sync for MemoryDimensionIdentity
impl Unpin for MemoryDimensionIdentity
impl UnsafeUnpin for MemoryDimensionIdentity
impl UnwindSafe for MemoryDimensionIdentity
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