[−][src]Struct dipstick::MetricName
The name of a metric, including the concatenated possible namespaces in which it was defined.
Implementations
impl MetricName
[src]
pub fn prepend<S: Into<NameParts>>(self, namespace: S) -> Self
[src]
Prepend to the existing namespace.
pub fn append<S: Into<NameParts>>(self, namespace: S) -> Self
[src]
Append to the existing namespace.
pub fn join(&self, separator: &str) -> String
[src]
Combine name parts into a string.
Methods from Deref<Target = NameParts>
pub fn is_within(&self, other: &NameParts) -> bool
[src]
Returns true if this instance is equal to or a subset (more specific) of the target instance.
e.g. a.b.c
is within a.b
e.g. a.d.c
is not within a.b
pub fn make_name<S: Into<String>>(&self, leaf: S) -> MetricName
[src]
Make a name in this namespace
pub fn short(&self) -> MetricName
[src]
Extract a copy of the last name part Panics if empty
Trait Implementations
impl Clone for MetricName
[src]
fn clone(&self) -> MetricName
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MetricName
[src]
impl Deref for MetricName
[src]
type Target = NameParts
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl DerefMut for MetricName
[src]
impl Eq for MetricName
[src]
impl<S: Into<String>> From<S> for MetricName
[src]
impl Hash for MetricName
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for MetricName
[src]
fn cmp(&self, other: &MetricName) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<MetricName> for MetricName
[src]
fn eq(&self, other: &MetricName) -> bool
[src]
fn ne(&self, other: &MetricName) -> bool
[src]
impl PartialOrd<MetricName> for MetricName
[src]
fn partial_cmp(&self, other: &MetricName) -> Option<Ordering>
[src]
fn lt(&self, other: &MetricName) -> bool
[src]
fn le(&self, other: &MetricName) -> bool
[src]
fn gt(&self, other: &MetricName) -> bool
[src]
fn ge(&self, other: &MetricName) -> bool
[src]
impl StructuralEq for MetricName
[src]
impl StructuralPartialEq for MetricName
[src]
Auto Trait Implementations
impl RefUnwindSafe for MetricName
impl Send for MetricName
impl Sync for MetricName
impl Unpin for MetricName
impl UnwindSafe for MetricName
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,