Struct futhark_bindgen::Rust
source · [−]pub struct Rust { /* private fields */ }Expand description
Rust codegen
Trait Implementations
sourceimpl Generate for Rust
impl Generate for Rust
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more