Skip to main content

assert_pyclass_send_sync

Function assert_pyclass_send_sync 

Source
pub const fn assert_pyclass_send_sync<T>()
where T: Send + Sync,
Expand description

Helper function that can be used at compile time to emit a diagnostic if the type does not implement Send or Sync when it should; the mere act of invoking this function will cause the diagnostic to be emitted if needed.

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here