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§
Source§impl 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
pub fn lib_path<P>(&mut self, path: P) -> &mut PackagedModule
Specify the path to search for the packaged ISPC libraries and bindings
Auto Trait Implementations§
impl Freeze for PackagedModule
impl RefUnwindSafe for PackagedModule
impl Send for PackagedModule
impl Sync for PackagedModule
impl Unpin for PackagedModule
impl UnwindSafe for PackagedModule
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more