pub fn count(&mut self) -> Result<usize, VmError> {
        let mut c = 0;

        while self.iter.next()?.is_some() {
            c += 1;
        }

        Ok(c)
    }
/// Count the number of elements remaining in the iterator.
Count the number of elements remaining in the iterator.
Count the number of elements remaining in the iterator .
pub fn count(&mut self) -> Result<usize, VmError> {
        let mut c = 0;
        while self.iter.next()?.is_some() {
            c += 1;
        }
        Ok(c)
    }
pub fn count ( & mut self ) -> Result < usize , VmError > { let mut c = 0 ; while self . iter . next ( ) ? . is_some ( ) { c += 1 ; } Ok ( c ) }
Count the number of elements remaining in the iterator.
Count the number of elements remaining in the iterator .
&mut self
&mut self