[][src]Trait genco::prelude::go::TypeTrait

pub trait TypeTrait: 'static + Debug + LangItem<Go> {
    fn as_enum(&self) -> TypeEnum;

    fn type_imports(&self, _: &mut BTreeSet<ItemStr>) { ... }
}

Trait implemented by all types

Required methods

fn as_enum(&self) -> TypeEnum

Coerce trait into an enum that can be used for type-specific operations

Loading content...

Provided methods

fn type_imports(&self, _: &mut BTreeSet<ItemStr>)

Handle imports for the given type.

Loading content...

Implementors

impl TypeTrait for Array[src]

impl TypeTrait for Interface[src]

impl TypeTrait for Map[src]

impl TypeTrait for Type[src]

Loading content...