multiversx_sc::abi

Trait TypeDescriptionContainer

Source
pub trait TypeDescriptionContainer {
    // Required methods
    fn new() -> Self;
    fn contains_type(&self, type_name: &str) -> bool;
    fn insert(
        &mut self,
        type_names: TypeNames,
        type_description: TypeDescription,
    );
    fn insert_all(&mut self, other: &Self);

    // Provided method
    fn reserve_type_name(&mut self, type_names: TypeNames) { ... }
}

Required Methods§

Source

fn new() -> Self

Source

fn contains_type(&self, type_name: &str) -> bool

Source

fn insert(&mut self, type_names: TypeNames, type_description: TypeDescription)

Source

fn insert_all(&mut self, other: &Self)

Provided Methods§

Source

fn reserve_type_name(&mut self, type_names: TypeNames)

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§