fn new()

in rust/ccommon-rs/src/metric/mod.rs [50:66]


    fn new(name: &'static CStr, desc: &'static CStr) -> Self;

    /// The metric's name
    fn name(&self) -> &'static CStr;
    /// The metric's description
    fn desc(&self) -> &'static CStr;
}

/// A type that can be safely viewed as a contiguous array
/// of [`metric`s][0].
///
/// It should usually only be implemented through `#[derive(Metrics)]`.
/// However, it must be implemented manually for C types that have
/// been bound through bindgen.
///
/// [0]: ../../cc_binding/struct.metric.html
pub unsafe trait Metrics: Sized {