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

pub trait TypeTrait: 'static + Debug + LangItem<Java> {
    fn as_enum(&self) -> TypeEnum;
fn name(&self) -> &str; fn package(&self) -> Option<&str> { ... }
fn arguments(&self) -> Option<&[TypeBox]> { ... }
fn type_imports(&self, _: &mut BTreeSet<(ItemStr, 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 name(&self) -> &str

Get package type belongs to.

Loading content...

Provided methods

fn package(&self) -> Option<&str>

Get package type belongs to.

fn arguments(&self) -> Option<&[TypeBox]>

Get generic arguments associated with type.

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

Process which kinds of imports to deal with.

Loading content...

Implementors

impl TypeTrait for Local[src]

impl TypeTrait for Optional[src]

impl TypeTrait for Primitive[src]

impl TypeTrait for Type[src]

impl TypeTrait for Void[src]

Loading content...