Trait CodeGenerator

Source
pub trait CodeGenerator: Sized {
    type Generator: From<Self> + GenerateCode;
}
Expand description

Types for which code can be generated by this crate.

Required Associated Types§

Source

type Generator: From<Self> + GenerateCode

The underlying generator generating the code.

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.

Implementations on Foreign Types§

Source§

impl<'a> CodeGenerator for &'a Blake2x256Macro

Source§

type Generator = Blake2x256<'a>

Source§

impl<'a> CodeGenerator for &'a ChainExtension

Source§

type Generator = ChainExtension<'a>

Source§

impl<'a> CodeGenerator for &'a Contract

Source§

type Generator = Contract<'a>

Source§

impl<'a> CodeGenerator for &'a Event

Source§

type Generator = Event<'a>

Source§

impl<'a> CodeGenerator for &'a InkTest

Source§

type Generator = InkTest<'a>

Source§

impl<'a> CodeGenerator for &'a InkTraitDefinition

Source§

type Generator = TraitDefinition<'a>

Source§

impl<'a> CodeGenerator for &'a SelectorMacro<SelectorBytes>

Source§

type Generator = SelectorBytes<'a>

Source§

impl<'a> CodeGenerator for &'a SelectorMacro<SelectorId>

Source§

type Generator = SelectorId<'a>

Source§

impl<'a> CodeGenerator for &'a StorageItem

Source§

type Generator = StorageItem<'a>

Implementors§