Struct ispc::PackagedModule
source · [−]pub struct PackagedModule { /* private fields */ }
Expand description
A PackagedModule
refers to an ISPC module which was previously
built using ispc_compile
, and is now distributed with
the crate.
Implementations
sourceimpl PackagedModule
impl PackagedModule
sourcepub fn new(lib: &str) -> PackagedModule
pub fn new(lib: &str) -> PackagedModule
Create a new PackagedModule
to link against the previously compiled
library named lib
. As in ispc_compile
, the library name should not
have any prefix or suffix. For example, instead of libexample.a
or
example.lib
, simple pass example
sourcepub fn lib_path<P>(&mut self, path: P) -> &mut PackagedModule where
P: AsRef<Path>,
pub fn lib_path<P>(&mut self, path: P) -> &mut PackagedModule where
P: AsRef<Path>,
Specify the path to search for the packaged ISPC libraries and bindings
Auto Trait Implementations
impl RefUnwindSafe for PackagedModule
impl Send for PackagedModule
impl Sync for PackagedModule
impl Unpin for PackagedModule
impl UnwindSafe for PackagedModule
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more