Struct oo_bindgen::model::ClassSettings
source · pub struct ClassSettings {
pub method_instance_argument_name: Name,
pub class_destructor_suffix: Name,
pub class_constructor_suffix: Name,
}
Expand description
Settings that affect class method naming
Fields§
§method_instance_argument_name: Name
Methods in C always take an instance of the class at the first parameter. This setting controls the name automatically assigned to this parameter.
This value defaults to “instance”
class_destructor_suffix: Name
suffix for C destructors.
The full C function name is automatically generated as <c_ffi_prefix>_<class_name>_<class_destructor_suffix>
This value defaults to ‘destroy’
class_constructor_suffix: Name
suffix for C constructors.
The full C function name is automatically generated as <c_ffi_prefix>_<class_name>_<class_constructor_suffix>
This value defaults to ‘new’
Implementations§
Trait Implementations§
source§impl Debug for ClassSettings
impl Debug for ClassSettings
source§impl Default for ClassSettings
impl Default for ClassSettings
source§fn default() -> ClassSettings
fn default() -> ClassSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ClassSettings
impl !Send for ClassSettings
impl !Sync for ClassSettings
impl Unpin for ClassSettings
impl UnwindSafe for ClassSettings
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