[−][src]Struct cbindgen::StructConfig
Settings to apply to generated structs.
Fields
rename_fields: Option<RenameRule>
The rename rule to apply to the name of struct fields
derive_constructor: bool
Whether to generate a constructor for the struct (which takes arguments to initialize all the members)
derive_eq: bool
Whether to generate a piecewise equality operator
derive_neq: bool
Whether to generate a piecewise inequality operator
derive_lt: bool
Whether to generate a less than operator on structs with one field
derive_lte: bool
Whether to generate a less than or equal to operator on structs with one field
derive_gt: bool
Whether to generate a greater than operator on structs with one field
derive_gte: bool
Whether to generate a greater than or equal to operator on structs with one field
associated_constants_in_body: bool
Whether associated constants should be in the body. Only applicable to non-transparent structs, and in C++-only.
must_use: Option<String>
The way to annotation this struct as #[must_use].
Trait Implementations
impl Clone for StructConfig
[src]
fn clone(&self) -> StructConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for StructConfig
[src]
fn default() -> StructConfig
[src]
impl Debug for StructConfig
[src]
impl<'de> Deserialize<'de> for StructConfig where
StructConfig: Default,
[src]
StructConfig: Default,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for StructConfig
impl Sync for StructConfig
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,