Trait elrond_codec::TopEncodeOutput[][src]

pub trait TopEncodeOutput: Sized {
    fn set_slice_u8(self, bytes: &[u8]);

    fn set_u64(self, value: u64) { ... }
fn set_i64(self, value: i64) { ... } }

Specifies objects that can receive the result of a TopEncode computation. in principle from NestedEncode performed on nested items.

All methods consume the object, so they can only be called once.

The trait is used in 3 scenarios:

  • SC results
  • #[storage_set(...)]
  • Serialize async call.

Required methods

fn set_slice_u8(self, bytes: &[u8])[src]

Loading content...

Provided methods

fn set_u64(self, value: u64)[src]

fn set_i64(self, value: i64)[src]

Loading content...

Implementors

impl TopEncodeOutput for &mut Vec<u8>[src]

Loading content...