Edit comment

This commit is contained in:
Violet
2025-07-30 21:53:43 +00:00
parent 3b9c92ea8a
commit 15f6e9dc8f

View File

@ -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>>> {