Struct cbindgen::ConstantConfig
source · pub struct ConstantConfig {
pub allow_static_const: bool,
}
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.
Trait Implementations§
source§impl Clone for ConstantConfig
impl Clone for ConstantConfig
source§fn clone(&self) -> ConstantConfig
fn clone(&self) -> ConstantConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConstantConfig
impl Debug for ConstantConfig
source§impl Default for ConstantConfig
impl Default for ConstantConfig
source§fn default() -> ConstantConfig
fn default() -> ConstantConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ConstantConfigwhere
ConstantConfig: Default,
impl<'de> Deserialize<'de> for ConstantConfigwhere
ConstantConfig: Default,
source§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