maple_engine 0.3.0

Engine implementation of maple engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! provides platform specific traits like send sync for both wasm and standard

#[cfg(not(target_arch = "wasm32"))]
pub trait SendSync: Send + Sync {}

#[cfg(target_arch = "wasm32")]
pub trait SendSync {}

#[cfg(not(target_arch = "wasm32"))]
impl<T: Send + Sync + ?Sized> SendSync for T {}

#[cfg(target_arch = "wasm32")]
impl<T: ?Sized> SendSync for T {}