o3 0.25.1

shared-nothing primitives
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::marker;

/// Public zero-sized proof of constructing-thread confinement.
#[repr(transparent)]
#[derive(Clone, Copy, Default, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
pub struct ThreadBound {
    pub marker: marker::PhantomData<*mut ()>,
}

impl ThreadBound {
    pub const NEW: Self = Self {
        marker: marker::PhantomData,
    };
}