pub fn new(name: &str, init_val: u64, instances: &[&str],
        shorthelp_text: &str, longhelp_text: &str) -> Result<Self, String> {
        
        let mut instances_and_initvals = Vec::new();
        for instance in instances {
            instances_and_initvals.push((*instance, init_val));
        }

        Self::new_with_initvals(
            name,
            &instances_and_initvals,
            shorthelp_text,
            longhelp_text
        )
    }
/// Creates a new count vector with given instances and a single initial value
Creates a new count vector with given instances and a single initial value
Creates a new count vector with given instances and a single initial value
pub fn new(name: &str, init_val: u64, instances: &[&str],
        shorthelp_text: &str, longhelp_text: &str) -> Result<Self, String> {
        let mut instances_and_initvals = Vec::new();
        for instance in instances {
            instances_and_initvals.push((*instance, init_val));
        }
        Self::new_with_initvals(
            name,
            &instances_and_initvals,
            shorthelp_text,
            longhelp_text
        )
    }
pub fn new ( name : & str , init_val : u64 , instances : & [ & str ] , shorthelp_text : & str , longhelp_text : & str ) -> Result < Self , String > { let mut instances_and_initvals = Vec :: new ( ) ; for instance in instances { instances_and_initvals . push ( ( * instance , init_val ) ) ; } Self :: new_with_initvals ( name , & instances_and_initvals , shorthelp_text , longhelp_text ) }
Creates a new count vector with given instances and a single initial value
Creates a new count vector with given instances and a single initial value
name
&str
init_val
u64
instances
&[&str]
shorthelp_text
&str
longhelp_text
&str