Struct futhark_bindgen::Compiler
source · pub struct Compiler { /* private fields */ }
Expand description
Wrapper around the Futhark compiler
Implementations§
source§impl Compiler
impl Compiler
sourcepub fn new(backend: Backend, src: impl AsRef<Path>) -> Compiler
pub fn new(backend: Backend, src: impl AsRef<Path>) -> Compiler
Create a new Compiler
instance with the selected backend and Futhark source file
sourcepub fn with_executable_name(self, name: impl AsRef<str>) -> Self
pub fn with_executable_name(self, name: impl AsRef<str>) -> Self
By default the executable name is set to futhark
, this function can be
used to set a different name or path
sourcepub fn with_extra_args(self, args: Vec<String>) -> Self
pub fn with_extra_args(self, args: Vec<String>) -> Self
Supply additional arguments to be passed to the futhark
executable
sourcepub fn with_output_dir(self, dir: impl AsRef<Path>) -> Self
pub fn with_output_dir(self, dir: impl AsRef<Path>) -> Self
Set the output directory where the C files and manifest will be created
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Compiler
impl Send for Compiler
impl Sync for Compiler
impl Unpin for Compiler
impl UnwindSafe for Compiler
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