#[doc(hidden)] pub struct SendablePyClass<T: Send>(PhantomData<T>);
Expand description
Default thread checker for #[pyclass]
.
Keeping the T: Send bound here slightly improves the compile
error message to hint to users to figure out what’s wrong
when #[pyclass]
types do not implement Send
.
Tuple Fields§
§0: PhantomData<T>