merc_utilities 2.0.0

Internal MERC crate containing various utility functions.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Defines helper types

use std::cell::Cell;
use std::marker::PhantomData;
use std::sync::MutexGuard;

/// Indicates that a type is !Sync
pub type PhantomUnsync = PhantomData<Cell<()>>;

/// Indicates that a type is !Send
pub type PhantomUnsend = PhantomData<MutexGuard<'static, ()>>;