You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea is to be able to increase the counter at the same time we observe the histogram.
The problem is Family::new_with_constructor requires a function pointer. As I want dynamic buckets, I need to capture the buckets variable inside the closure and the compiler can't cast it to a function pointer anymore.
Could be possible to allow a more flexible constructor?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi, I'm trying to build a custom struct that wraps a couple of metrics and measure them at the same time. Something like this:
The idea is to be able to increase the counter at the same time we observe the histogram.
The problem is
Family::new_with_constructor
requires a function pointer. As I want dynamic buckets, I need to capture thebuckets
variable inside the closure and the compiler can't cast it to a function pointer anymore.Could be possible to allow a more flexible constructor?
Thanks!
The text was updated successfully, but these errors were encountered: