Struct openmetrics_parser::LabelSet
source · pub struct LabelSet<'a> { /* private fields */ }
Implementations§
source§impl<'a> LabelSet<'a>
impl<'a> LabelSet<'a>
pub fn new<ValueType>( label_names: Arc<Vec<String>>, sample: &'a Sample<ValueType> ) -> Result<Self, ParseError>
pub fn matches_sample<ValueType>(&self, sample: &Sample<ValueType>) -> bool
pub fn matches_values(&self, label_values: &[String]) -> bool
pub fn iter(&self) -> impl Iterator<Item = (&String, &String)>
pub fn iter_names(&self) -> impl Iterator<Item = &String>
pub fn iter_values(&self) -> impl Iterator<Item = &String>
pub fn get_label_value(&self, label_name: &str) -> Option<&str>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for LabelSet<'a>
impl<'a> Send for LabelSet<'a>
impl<'a> Sync for LabelSet<'a>
impl<'a> Unpin for LabelSet<'a>
impl<'a> UnwindSafe for LabelSet<'a>
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