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 Freeze for ClassSettings
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