Add typemap that is Send + Sync without being Clone
Signed-off-by: trivernis <trivernis@protonmail.com>main
parent
68102e4b8e
commit
bdb5145fdb
@ -1,9 +1,11 @@
|
||||
mod clone_send_sync_typemap;
|
||||
mod clone_typemap;
|
||||
mod partialeq_typemap;
|
||||
mod send_sync_typemap;
|
||||
mod typemap;
|
||||
|
||||
pub use clone_send_sync_typemap::*;
|
||||
pub use clone_typemap::*;
|
||||
pub use partialeq_typemap::*;
|
||||
pub use send_sync_typemap::*;
|
||||
pub use typemap::*;
|
||||
|
@ -0,0 +1,14 @@
|
||||
use crate::impl_typemap;
|
||||
use std::any::Any;
|
||||
|
||||
impl_typemap!(
|
||||
/// A typemap that is Send and Sync
|
||||
SendSyncTypeMap,
|
||||
SendSyncTypeMapKey,
|
||||
Any,
|
||||
Send,
|
||||
Sync
|
||||
);
|
||||
|
||||
unsafe impl Send for SendSyncTypeMap {}
|
||||
unsafe impl Sync for SendSyncTypeMap {}
|
Loading…
Reference in New Issue