We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Module::as_inner
1 parent 2479a9c commit 54bbeecCopy full SHA for 54bbeec
crates/cust/src/module.rs
@@ -418,6 +418,12 @@ impl Module {
418
}
419
420
421
+ // Get the inner `CUModule` from the `Module`. If you use this handle elsewhere,
422
+ // make sure not to use it after the module has been dropped. Or ManuallyDrop the struct to be safe.
423
+ pub fn as_inner(&self) -> driver_sys::CUModule {
424
+ self.inner
425
+ }
426
+
427
/// Destroy a `Module`, returning an error.
428
///
429
/// Destroying a module can return errors from previous asynchronous work. This function
0 commit comments