fn elements(mut self) -> Result<Vec<KV>, FfiError>
    where
        Self: Sized,
    {
        let mut out: Vec<KV> = Vec::new();
        loop {
            let (result, _gas_info) = self.next();
            match result {
                Ok(Some(kv)) => out.push(kv),
                Ok(None) => break,
                Err(err) => return Err(err),
            }
        }
        Ok(out)
    }
/// Collects all elements, ignoring gas costs
Collects all elements, ignoring gas costs
Collects all elements ignoring gas costs
fn elements(mut self) -> Result<Vec<KV>, FfiError>
    where
        Self: Sized,
    {
        let mut out: Vec<KV> = Vec::new();
        loop {
            let (result, _gas_info) = self.next();
            match result {
                Ok(Some(kv)) => out.push(kv),
                Ok(None) => break,
                Err(err) => return Err(err),
            }
        }
        Ok(out)
    }
fn elements ( mut self ) -> Result < Vec < KV > , FfiError > where Self : Sized , { let mut out : Vec < KV > = Vec :: new ( ) ; loop { let ( result , _gas_info ) = self . next ( ) ; match result { Ok ( Some ( kv ) ) => out . push ( kv ) , Ok ( None ) => break , Err ( err ) => return Err ( err ) , } } Ok ( out ) }
Collects all elements, ignoring gas costs
Collects all elements ignoring gas costs
mut self
mut self