pub struct Rust { /* private fields */ }
Expand description
Rust codegen
Trait Implementations§
Source§impl Generate for Rust
impl Generate for Rust
Source§fn array_type(
&mut self,
_pkg: &Package,
config: &mut Config,
name: &str,
a: &ArrayType,
) -> Result<(), Error>
fn array_type( &mut self, _pkg: &Package, config: &mut Config, name: &str, a: &ArrayType, ) -> Result<(), Error>
Step 2: generate code for array types
Source§fn opaque_type(
&mut self,
_pkg: &Package,
config: &mut Config,
name: &str,
ty: &OpaqueType,
) -> Result<(), Error>
fn opaque_type( &mut self, _pkg: &Package, config: &mut Config, name: &str, ty: &OpaqueType, ) -> Result<(), Error>
Step 3: generate code for opaque types
Source§fn entry(
&mut self,
_pkg: &Package,
config: &mut Config,
name: &str,
entry: &Entry,
) -> Result<(), Error>
fn entry( &mut self, _pkg: &Package, config: &mut Config, name: &str, entry: &Entry, ) -> Result<(), Error>
Step 4: generate code for entry points
Source§fn bindings(&mut self, pkg: &Package, config: &mut Config) -> Result<(), Error>
fn bindings(&mut self, pkg: &Package, config: &mut Config) -> Result<(), Error>
Step 1: generate any setup code or low-level bindings
Auto Trait Implementations§
impl Freeze for Rust
impl RefUnwindSafe for Rust
impl Send for Rust
impl Sync for Rust
impl Unpin for Rust
impl UnwindSafe for Rust
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