Struct uniffi_bindgen::bindings::SwiftBindingGenerator
source · pub struct SwiftBindingGenerator;
Trait Implementations§
source§impl BindingGenerator for SwiftBindingGenerator
impl BindingGenerator for SwiftBindingGenerator
source§fn write_bindings(
&self,
ci: &ComponentInterface,
config: &Config,
out_dir: &Utf8Path,
try_format_code: bool
) -> Result<()>
fn write_bindings( &self, ci: &ComponentInterface, config: &Config, out_dir: &Utf8Path, try_format_code: bool ) -> Result<()>
Unlike other target languages, binding to Rust code from Swift involves more than just
generating a .swift
file. We also need to produce a .h
file with the C-level API
declarations, and a .modulemap
file to tell Swift how to use it.
source§fn new_config(&self, root_toml: &Value) -> Result<Self::Config>
fn new_config(&self, root_toml: &Value) -> Result<Self::Config>
Creates a new config.
Auto Trait Implementations§
impl RefUnwindSafe for SwiftBindingGenerator
impl Send for SwiftBindingGenerator
impl Sync for SwiftBindingGenerator
impl Unpin for SwiftBindingGenerator
impl UnwindSafe for SwiftBindingGenerator
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