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

pub trait TypeTrait: 'static + Debug + LangItem<Swift> {
    fn as_enum(&self) -> TypeEnum;
fn type_imports(&self, modules: &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

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

Handle imports for the given type.

Loading content...

Implementors

impl TypeTrait for Array[src]

impl TypeTrait for Map[src]

impl TypeTrait for Type[src]

Loading content...