1use std::marker::PhantomData;
2
3use 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>).
7pub(crate) struct NotSend(PhantomData<*mut Python<'static>>);
8
9pub(crate) const NOT_SEND: NotSend = NotSend(PhantomData);
10