pub struct CodegenOpts {
pub file_name: String,
pub dylib_path: String,
pub lazy: bool,
pub extended: bool,
pub embedded: Option<PathBuf>,
}Fields§
§file_name: String§dylib_path: String§lazy: bool§extended: boolIf false, uses the opaque representations of rust types with no method to interface with rust data structures
If true, uses the extended rust types with methods for interfacing with rust data structures, but embeds the ffi symbols on the same dylib
embedded: Option<PathBuf>If provided, writes the extended rust types on a separate
file and uses the dylib from this path for the typescript representation
of the extended rust types. Incompatible with inline=true
Trait Implementations§
Source§impl Clone for CodegenOpts
impl Clone for CodegenOpts
Auto Trait Implementations§
impl Freeze for CodegenOpts
impl RefUnwindSafe for CodegenOpts
impl Send for CodegenOpts
impl Sync for CodegenOpts
impl Unpin for CodegenOpts
impl UnsafeUnpin for CodegenOpts
impl UnwindSafe for CodegenOpts
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