Struct cbindgen::ConstantConfig [−][src]
pub struct ConstantConfig { pub allow_static_const: bool, pub allow_constexpr: bool, pub sort_by: Option<SortKey>, }
Expand description
Settings to apply to generated constants.
Fields
allow_static_const: bool
Whether a generated constant can be a static const in C++ mode.
allow_constexpr: bool
Whether a generated constant should be constexpr in C++ mode.
sort_by: Option<SortKey>
Sort key for constants
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ConstantConfig
impl Send for ConstantConfig
impl Sync for ConstantConfig
impl Unpin for ConstantConfig
impl UnwindSafe for ConstantConfig
Blanket Implementations
Mutably borrows from an owned value. Read more