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

pub trait TypeTrait: 'static + Debug + LangItem<Java> {
    fn as_enum(&self) -> AnyRef;
fn name(&self) -> &str;
fn java_format(
        &self,
        out: &mut Formatter,
        config: &Config,
        format: &Format,
        level: usize
    ) -> Result; fn package(&self) -> Option<&str> { ... }
fn arguments(&self) -> Option<&[Any]> { ... }
fn type_imports(&self, _: &mut BTreeSet<(ItemStr, ItemStr)>) { ... } }

Trait implemented by all types

Required methods

fn as_enum(&self) -> AnyRef

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

fn name(&self) -> &str

Get package type belongs to.

fn java_format(
    &self,
    out: &mut Formatter,
    config: &Config,
    format: &Format,
    level: usize
) -> Result

Java-specific interior formatting.

Loading content...

Provided methods

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

Get package type belongs to.

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

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...