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
sourceimpl Clone for ConstantConfig
impl Clone for ConstantConfig
sourcefn clone(&self) -> ConstantConfig
fn clone(&self) -> ConstantConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ConstantConfig
impl Debug for ConstantConfig
sourceimpl Default for ConstantConfig
impl Default for ConstantConfig
sourcefn default() -> ConstantConfig
fn default() -> ConstantConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ConstantConfigwhere
ConstantConfig: Default,
impl<'de> Deserialize<'de> for ConstantConfigwhere
ConstantConfig: Default,
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more