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

pub trait TypeTrait: 'static + Debug + LangItem<Csharp> {
    fn as_enum(&self) -> TypeEnum;
fn name(&self) -> &str;
fn is_nullable(&self) -> bool; fn namespace(&self) -> Option<&str> { ... }
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 the name of the type.

fn is_nullable(&self) -> bool

Check if type is nullable.

Loading content...

Provided methods

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

Get the namespace of the type, if available.

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

Handle imports recursively.

Loading content...

Implementors

impl TypeTrait for Array[src]

impl TypeTrait for Optional[src]

impl TypeTrait for Simple[src]

impl TypeTrait for Type[src]

impl TypeTrait for Void[src]

Loading content...