async fn build(
        mut self,
        context: &std::sync::Arc<ClientContext>,
    ) -> ClientResult<BuildResult<'a>> {
        while let Some(op) = self.input.next() {
            match op {
                BuilderOp::Integer { size, value } => {
                    append_integer(&mut self.result, *size as usize, value)?;
                }
                BuilderOp::BitString { value } => {
                    append_bitstring(&mut self.result, &value)?;
                }
                BuilderOp::CellBoc { boc } => {
                    self.result.append_reference_cell(
                        deserialize_cell_from_boc(context, boc, "CellBoc")
                            .await?
                            .1,
                    );
                }
                BuilderOp::Cell { ref builder } => {
                    return Ok(BuildResult::Nested {
                        nested: Self::new(builder),
                        prev: self,
                    });
                }
            }
        }
        Ok(BuildResult::Complete(self.result.into_cell().map_err(
            |err| Error::serialization_error(err, "encode_boc"),
        )?))
    }
/// Append data using operation iterator until the end or the nested cell operation.
/// Returns resulting cell or nested Builder.
Append data using operation iterator until the end or the nested cell operation.
Returns resulting cell or nested Builder.
Append data using operation iterator until the end or the nested cell operation . Returns resulting cell or nested Builder .
async fn build(
        mut self,
        context: &std::sync::Arc<ClientContext>,
    ) -> ClientResult<BuildResult<'a>> {
        while let Some(op) = self.input.next() {
            match op {
                BuilderOp::Integer { size, value } => {
                    append_integer(&mut self.result, *size as usize, value)?;
                }
                BuilderOp::BitString { value } => {
                    append_bitstring(&mut self.result, &value)?;
                }
                BuilderOp::CellBoc { boc } => {
                    self.result.append_reference_cell(
                        deserialize_cell_from_boc(context, boc, "CellBoc")
                            .await?
                            .1,
                    );
                }
                BuilderOp::Cell { ref builder } => {
                    return Ok(BuildResult::Nested {
                        nested: Self::new(builder),
                        prev: self,
                    });
                }
            }
        }
        Ok(BuildResult::Complete(self.result.into_cell().map_err(
            |err| Error::serialization_error(err, "encode_boc"),
        )?))
    }
async fn build ( mut self , context : & std :: sync :: Arc < ClientContext > , ) -> ClientResult < BuildResult < ' a > > { while let Some ( op ) = self . input . next ( ) { match op { BuilderOp :: Integer { size , value } => { append_integer ( & mut self . result , * size as usize , value ) ? ; } BuilderOp :: BitString { value } => { append_bitstring ( & mut self . result , & value ) ? ; } BuilderOp :: CellBoc { boc } => { self . result . append_reference_cell ( deserialize_cell_from_boc ( context , boc , " " ) . await ? . 1 , ) ; } BuilderOp :: Cell { ref builder } => { return Ok ( BuildResult :: Nested { nested : Self :: new ( builder ) , prev : self , } ) ; } } } Ok ( BuildResult :: Complete ( self . result . into_cell ( ) . map_err ( | err | Error :: serialization_error ( err , " " ) , ) ? ) ) }
Append data using operation iterator until the end or the nested cell operation.
Append data using operation iterator until the end or the nested cell operation .
mut self
context
&std::sync::Arc<ClientContext>