Struct prometrics::label::Labels
[−]
[src]
pub struct Labels(_);
A map of labels (i.e., key-value pairs).
Methods
impl Labels
[src]
pub fn len(&self) -> usize
[src]
Returns the number of labels contained in this map.
pub fn is_empty(&self) -> bool
[src]
Returns true
if this map has no labels, otherwise false
.
pub fn get(&self, name: &str) -> Option<&Label>
[src]
Returns the label which has the name name
.
ⓘImportant traits for Iter<'a>pub fn iter(&self) -> Iter
[src]
ⓘImportant traits for Iter<'a>
Returns an iterator which visiting all labels in this map.
Trait Implementations
impl Debug for Labels
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more