Trait bindgen::chooser::TypeChooser [] [src]

pub trait TypeChooser: Debug {
    fn int_macro(&self, _name: &str, _value: i64) -> Option<IntKind> { ... }
    fn enum_variant_behavior(&self,
                             _enum_name: Option<&str>,
                             _variant_name: &str,
                             _variant_value: EnumVariantValue)
                             -> Option<EnumVariantCustomBehavior> { ... } }

A trait to allow configuring different kinds of types in different situations.

Provided Methods

The integer kind an integer macro should have, given a name and the value of that macro, or None if you want the default to be chosen.

This function should return whether, given the a given enum variant name, and value, returns whether this enum variant will forcibly be a constant.

Implementors