pub fn collect<T>(mut self) -> Result<vec::Vec<T>, VmError>
    where
        T: FromValue,
    {
        let (cap, _) = self.iter.size_hint();
        let mut vec = vec::Vec::with_capacity(cap);

        while let Some(value) = self.next()? {
            vec.push(T::from_value(value)?);
        }

        Ok(vec)
    }
/// Collect results from the iterator.
Collect results from the iterator.
Collect results from the iterator .
pub fn collect<T>(mut self) -> Result<vec::Vec<T>, VmError>
    where
        T: FromValue,
    {
        let (cap, _) = self.iter.size_hint();
        let mut vec = vec::Vec::with_capacity(cap);
        while let Some(value) = self.next()? {
            vec.push(T::from_value(value)?);
        }
        Ok(vec)
    }
pub fn collect < T > ( mut self ) -> Result < vec :: Vec < T > , VmError > where T : FromValue , { let ( cap , _ ) = self . iter . size_hint ( ) ; let mut vec = vec :: Vec :: with_capacity ( cap ) ; while let Some ( value ) = self . next ( ) ? { vec . push ( T :: from_value ( value ) ? ) ; } Ok ( vec ) }
Collect results from the iterator.
Collect results from the iterator .
mut self
mut self