Struct futhark_bindgen::Rust
source · 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 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