mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-08-02 14:57:43 +03:00
Edit comment
This commit is contained in:
@ -258,7 +258,7 @@ impl<T: ZludaObject> LiveCheck<T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Cast arbitrary memory to a [`LiveCheck`] value.
|
/// Cast a `T::CudaHandle` reference to a [`LiveCheck`] reference, preserving the lifetime.
|
||||||
pub fn as_ref<'a, T: ZludaObject>(
|
pub fn as_ref<'a, T: ZludaObject>(
|
||||||
handle: &'a T::CudaHandle,
|
handle: &'a T::CudaHandle,
|
||||||
) -> &'a ManuallyDrop<Box<LiveCheck<T>>> {
|
) -> &'a ManuallyDrop<Box<LiveCheck<T>>> {
|
||||||
|
Reference in New Issue
Block a user