pub struct DimensionMap(/* private fields */);Expand description
A map of Dimension -> String
Implementations§
Source§impl DimensionMap
impl DimensionMap
Sourcepub fn to_string(&self, quota: &Quota) -> Option<String>
pub fn to_string(&self, quota: &Quota) -> Option<String>
Converts the dimensions of this item scoping, for the supplied quota, into a string of the dimension name and hashed value. This looks like ‘:key1:hash1:key2:hash2’. This function assumes that the quota passed to it already matches this ItemScoping. If the
Trait Implementations§
Source§impl Clone for DimensionMap
impl Clone for DimensionMap
Source§fn clone(&self) -> DimensionMap
fn clone(&self) -> DimensionMap
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 DimensionMap
impl Debug for DimensionMap
Source§impl Default for DimensionMap
impl Default for DimensionMap
Source§fn default() -> DimensionMap
fn default() -> DimensionMap
Returns the “default value” for a type. Read more
impl Eq for DimensionMap
Source§impl FromIterator<(Dimension, String)> for DimensionMap
impl FromIterator<(Dimension, String)> for DimensionMap
Source§fn from_iter<T: IntoIterator<Item = (Dimension, String)>>(
iter: T,
) -> DimensionMap
fn from_iter<T: IntoIterator<Item = (Dimension, String)>>( iter: T, ) -> DimensionMap
Creates a value from an iterator. Read more
Source§impl PartialEq for DimensionMap
impl PartialEq for DimensionMap
impl StructuralPartialEq for DimensionMap
Auto Trait Implementations§
impl Freeze for DimensionMap
impl RefUnwindSafe for DimensionMap
impl Send for DimensionMap
impl Sync for DimensionMap
impl Unpin for DimensionMap
impl UnsafeUnpin for DimensionMap
impl UnwindSafe for DimensionMap
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more