mod sealed {
use super::*;
pub
trait RepresentsAutoTraits {}
impl RepresentsAutoTraits for dyn Send + 'static {}
impl RepresentsAutoTraits for dyn Sync + 'static {}
impl RepresentsAutoTraits for dyn Send + Sync + 'static {}
impl RepresentsAutoTraits for NoAutoTraits {}
}
pub
struct NoAutoTraits (
PhantomNotSendNorSync,
::core::convert::Infallible,
);
type PhantomNotSendNorSync =
::core::marker::PhantomData<*mut ()>
;
#[doc(hidden)] #[allow(nonstandard_style)]
pub
mod Sendness {
use super::*;
pub
trait T : sealed::RepresentsAutoTraits {}
impl T for dyn Send {}
impl T for dyn Sync {}
impl T for dyn Send + Sync {}
impl T for NoAutoTraits {}
}
#[doc(hidden)] #[allow(nonstandard_style)]
pub
mod Syncness {
use super::*;
pub
trait T : sealed::RepresentsAutoTraits {}
impl T for dyn Send {}
impl T for dyn Sync {}
impl T for dyn Send + Sync {}
impl T for NoAutoTraits {}
}