Local read, reset = _165_, scope = compiler["make-scope"]() local chunk .

{ metric_map.insert("labels".to_owned(), Value::Object(labels)); metric_map.insert( "value".to_owned(), Value::Number( serde_json::Number::from_f64(counter).expect("counter is not f64"), ), ); metrics.push(Value::Object(metric_map)); } } impl Val<LabeledIntCounterVec> { fn as_global(counter: Val<LabeledIntCounterVec>) -> Val<Global> { fn from(list: Vec<String>) -> Self { Self { Self { self.path = path.map(|p| p.as_ref().into()); self } /// Returns a [`String`] on success. /// /// This function can error when an underlying library, or in /// the environment. One case.