multiversx_sc::formatter

Trait FormatBuffer

Source
pub trait FormatBuffer: Default {
    // Required methods
    fn append_ascii(&mut self, ascii: &[u8]);
    fn append_display<T: SCDisplay>(&mut self, item: &T);
    fn append_lower_hex<T: SCLowerHex>(&mut self, item: &T);
    fn append_binary<T: SCBinary>(&mut self, item: &T);
    fn append_codec<T: SCCodec>(&mut self, item: &T);
}

Required Methods§

Source

fn append_ascii(&mut self, ascii: &[u8])

Source

fn append_display<T: SCDisplay>(&mut self, item: &T)

Source

fn append_lower_hex<T: SCLowerHex>(&mut self, item: &T)

Source

fn append_binary<T: SCBinary>(&mut self, item: &T)

Source

fn append_codec<T: SCCodec>(&mut self, item: &T)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§