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
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LibrarySettings
impl RefUnwindSafe for LibrarySettings
impl !Send for LibrarySettings
impl !Sync for LibrarySettings
impl Unpin for LibrarySettings
impl UnwindSafe for LibrarySettings
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