[−][src]Trait genco::prelude::java::TypeTrait
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
&self,
out: &mut Formatter,
config: &Config,
format: &Format,
level: usize
) -> Result
Java-specific interior formatting.
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.
Implementors
impl TypeTrait for Local
[src]
fn as_enum(&self) -> AnyRef
[src]
fn name(&self) -> &str
[src]
fn java_format(
&self,
out: &mut Formatter,
_: &Config,
_: &Format,
_: usize
) -> Result
[src]
&self,
out: &mut Formatter,
_: &Config,
_: &Format,
_: usize
) -> Result
impl TypeTrait for Optional
[src]
fn as_enum(&self) -> AnyRef
[src]
fn name(&self) -> &str
[src]
fn package(&self) -> Option<&str>
[src]
fn arguments(&self) -> Option<&[Any]>
[src]
fn type_imports(&self, modules: &mut BTreeSet<(ItemStr, ItemStr)>)
[src]
fn java_format(
&self,
out: &mut Formatter,
config: &Config,
format: &Format,
level: usize
) -> Result
[src]
&self,
out: &mut Formatter,
config: &Config,
format: &Format,
level: usize
) -> Result
impl TypeTrait for Primitive
[src]
fn as_enum(&self) -> AnyRef
[src]
fn name(&self) -> &str
[src]
fn package(&self) -> Option<&str>
[src]
fn java_format(
&self,
out: &mut Formatter,
_: &Config,
_: &Format,
level: usize
) -> Result
[src]
&self,
out: &mut Formatter,
_: &Config,
_: &Format,
level: usize
) -> Result
impl TypeTrait for Type
[src]
fn as_enum(&self) -> AnyRef
[src]
fn name(&self) -> &str
[src]
fn package(&self) -> Option<&str>
[src]
fn arguments(&self) -> Option<&[Any]>
[src]
fn type_imports(&self, modules: &mut BTreeSet<(ItemStr, ItemStr)>)
[src]
fn java_format(
&self,
out: &mut Formatter,
config: &Config,
format: &Format,
level: usize
) -> Result
[src]
&self,
out: &mut Formatter,
config: &Config,
format: &Format,
level: usize
) -> Result