1 | use std::marker::PhantomData; |
---|---|
2 | |
3 | use crate::Python; |
4 | |
5 | /// A marker type that makes the type !Send. |
6 | /// Workaround for lack of !Send on stable (<https://github.com/rust-lang/rust/issues/68318>). |
7 | pub(crate) struct NotSend(PhantomData<*mut Python<'static>>); |
8 | |
9 | pub(crate) const NOT_SEND: NotSend = NotSend(PhantomData); |
10 |