pub fn new(name: &str, low: u64, high: u64, sigfig: u8, unit: Unit,
        shorthelp_text: &str, longhelp_text: &str) -> Result<Self, CreationError> {
    
        let indom_helptext = format!("Instance domain for Histogram '{}'", name);
        let indom = Indom::new(HIST_INSTANCES, &indom_helptext, &indom_helptext).unwrap();
        
        let im = InstanceMetric::new(
            &indom,
            name,
            0.0,
            Semantics::Instant,
            unit,
            shorthelp_text,
            longhelp_text
        )?;

        let mut histogram = HdrHist::<u64>::new_with_bounds(low, high, sigfig)?;
        histogram.auto(false);

        Ok(Histogram {
            im: im,
            indom: indom,
            histogram: histogram
        })
    }
/// Creates a new histogram metric
///
/// Internally creates a corresponding HDR histogram with auto-resizing disabled
Creates a new histogram metric
Internally creates a corresponding HDR histogram with auto-resizing disabled
Creates a new histogram metric Internally creates a corresponding HDR histogram with auto - resizing disabled
pub fn new(name: &str, low: u64, high: u64, sigfig: u8, unit: Unit,
        shorthelp_text: &str, longhelp_text: &str) -> Result<Self, CreationError> {
        let indom_helptext = format!("Instance domain for Histogram '{}'", name);
        let indom = Indom::new(HIST_INSTANCES, &indom_helptext, &indom_helptext).unwrap();
        let im = InstanceMetric::new(
            &indom,
            name,
            0.0,
            Semantics::Instant,
            unit,
            shorthelp_text,
            longhelp_text
        )?;
        let mut histogram = HdrHist::<u64>::new_with_bounds(low, high, sigfig)?;
        histogram.auto(false);
        Ok(Histogram {
            im: im,
            indom: indom,
            histogram: histogram
        })
    }
pub fn new ( name : & str , low : u64 , high : u64 , sigfig : u8 , unit : Unit , shorthelp_text : & str , longhelp_text : & str ) -> Result < Self , CreationError > { let indom_helptext = format ! ( " " name ) ; let indom = Indom :: new ( HIST_INSTANCES , & indom_helptext , & indom_helptext ) . unwrap ( ) ; let im = InstanceMetric :: new ( & indom , name , 0.0 , Semantics :: Instant , unit , shorthelp_text , longhelp_text ) ? ; let mut histogram = HdrHist :: < u64 > :: new_with_bounds ( low , high , sigfig ) ? ; histogram . auto ( false ) ; Ok ( Histogram { im : im , indom : indom , histogram : histogram } ) }
Creates a new histogram metric
Internally creates a corresponding HDR histogram with auto-resizing disabled
Creates a new histogram metric Internally creates a corresponding HDR histogram with auto - resizing disabled
name
&str
low
u64
high
u64
sigfig
u8
unit
Unit
shorthelp_text
&str
longhelp_text
&str