fn count(&self, max: usize) -> Result<usize> {
        match self.data() {
            Some(root) => {
                let mut len = 0;
                let cursor = LabelReader::with_cell(root);
                count_internal::<Self>(cursor, self.bit_len(), &mut len, max)?;
                Ok(len)
            }
            None => Ok(0)
        }
    }
/// counts elements to max counter - can be used as validate
counts elements to max counter - can be used as validate
counts elements to max counter - can be used as validate
fn count(&self, max: usize) -> Result<usize> {
        match self.data() {
            Some(root) => {
                let mut len = 0;
                let cursor = LabelReader::with_cell(root);
                count_internal::<Self>(cursor, self.bit_len(), &mut len, max)?;
                Ok(len)
            }
            None => Ok(0)
        }
    }
fn count ( & self , max : usize ) -> Result < usize > { match self . data ( ) { Some ( root ) => { let mut len = 0 ; let cursor = LabelReader :: with_cell ( root ) ; count_internal :: < Self > ( cursor , self . bit_len ( ) , & mut len , max ) ? ; Ok ( len ) } None => Ok ( 0 ) } }
counts elements to max counter - can be used as validate
counts elements to max counter - can be used as validate
&self
max
usize
&self
max
usize