Struct futhark_bindgen::OCaml
source · [−]pub struct OCaml { /* private fields */ }Expand description
OCaml codegen
Implementations
Trait Implementations
sourceimpl Generate for OCaml
impl Generate for OCaml
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
sourcefn 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
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
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
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