pub struct RustLibrary { /* private fields */ }Expand description
The main entry point for C# code generation.
Holds the full multi-pass pipeline: inventory, model passes, output passes, and
extensions. Call process to run the pipeline and produce
a Multibuf containing the generated .cs files.
§Example
use interoptopus_csharp::RustLibrary;
let output = RustLibrary::builder(inventory)
.dll_name("my_lib")
.build()
.process()
.expect("code generation failed");
output.write_buffers_to("bindings/").unwrap();Implementations§
Source§impl RustLibrary
impl RustLibrary
Sourcepub fn new(inventory: RustInventory) -> Self
pub fn new(inventory: RustInventory) -> Self
Creates a new RustLibrary with default configuration.
Sourcepub fn builder(inventory: RustInventory) -> RustLibraryBuilder
pub fn builder(inventory: RustInventory) -> RustLibraryBuilder
Returns a builder for configuring the code generation pipeline.
Auto Trait Implementations§
impl !Freeze for RustLibrary
impl !RefUnwindSafe for RustLibrary
impl !Send for RustLibrary
impl !Sync for RustLibrary
impl Unpin for RustLibrary
impl UnsafeUnpin for RustLibrary
impl !UnwindSafe for RustLibrary
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