Trait odra_codegen::OdraPoet

source ·
pub trait OdraPoet: Sized {
    type Poet: From<Self> + GenerateCode;
}
Expand description

Types which can generate code.

Required Associated Types§

source

type Poet: From<Self> + GenerateCode

The underlying generator generating the code.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a> OdraPoet for &'a OdraTypeItem

§

type Poet = OdraTypeItem<'a>

source§

impl<'a> OdraPoet for &'a EventItem

§

type Poet = EventItem<'a>

source§

impl<'a> OdraPoet for &'a ErrorEnumItem

§

type Poet = ErrorEnumItem<'a>

source§

impl<'a> OdraPoet for &'a ExternalContractItem

§

type Poet = ExternalContractItem<'a>

source§

impl<'a> OdraPoet for &'a InstanceItem

§

type Poet = InstanceItem<'a>

source§

impl<'a> OdraPoet for &'a MapExpr

§

type Poet = OdraMapping<'a>

source§

impl<'a> OdraPoet for &'a ModuleImpl

§

type Poet = ModuleImpl<'a>

source§

impl<'a> OdraPoet for &'a ModuleStruct

§

type Poet = ModuleStruct<'a>

source§

impl<'a> OdraPoet for &'a ItemEnum

§

type Poet = OdraErrorItem<'a>

Implementors§