Struct oo_bindgen::model::LibrarySettings
source · pub struct LibrarySettings {
pub name: Name,
pub c_ffi_prefix: Name,
pub class: ClassSettings,
pub iterator: IteratorSettings,
pub collection: CollectionSettings,
pub future: FutureSettings,
pub interface: InterfaceSettings,
}
Expand description
Settings that affect the names of things
Fields§
§name: Name
name of the library
c_ffi_prefix: Name
prefix given to all API types, e.g. structs, enums, functions, etc
class: ClassSettings
settings that control class generation
iterator: IteratorSettings
settings that control iterator generation
collection: CollectionSettings
settings that control collection generation
future: FutureSettings
settings that control future-style interface generation
interface: InterfaceSettings
settings that control C interface member naming
Implementations§
source§impl LibrarySettings
impl LibrarySettings
sourcepub fn create<S: IntoName, R: IntoName>(
name: S,
c_ffi_prefix: R,
class: ClassSettings,
iterator: IteratorSettings,
collection: CollectionSettings,
future: FutureSettings,
interface: InterfaceSettings
) -> BindResult<Rc<Self>>
pub fn create<S: IntoName, R: IntoName>(
name: S,
c_ffi_prefix: R,
class: ClassSettings,
iterator: IteratorSettings,
collection: CollectionSettings,
future: FutureSettings,
interface: InterfaceSettings
) -> BindResult<Rc<Self>>
create an RC to the settings that is cheaply cloned