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§
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
Auto Trait Implementations§
impl Freeze for ConstantConfig
impl RefUnwindSafe for ConstantConfig
impl Send for ConstantConfig
impl Sync for ConstantConfig
impl Unpin for ConstantConfig
impl UnwindSafe for ConstantConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more