Struct futhark_bindgen::OCaml
source · pub struct OCaml { /* private fields */ }
Expand description
OCaml codegen
Implementations§
Trait Implementations§
source§impl Generate for OCaml
impl Generate for OCaml
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
source§fn array_type(
&mut self,
_pkg: &Package,
config: &mut Config,
name: &str,
ty: &ArrayType
) -> Result<(), Error>
fn array_type( &mut self, _pkg: &Package, config: &mut Config, name: &str, ty: &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
Auto Trait Implementations§
impl RefUnwindSafe for OCaml
impl Send for OCaml
impl Sync for OCaml
impl Unpin for OCaml
impl UnwindSafe for OCaml
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