#[repr(transparent)]pub struct ThreadBound {
pub marker: PhantomData<*mut ()>,
}Expand description
Public zero-sized proof of constructing-thread confinement.
Fields§
§marker: PhantomData<*mut ()>Implementations§
Source§impl ThreadBound
impl ThreadBound
Trait Implementations§
Source§impl Clone for ThreadBound
impl Clone for ThreadBound
impl Copy for ThreadBound
Source§impl Debug for ThreadBound
impl Debug for ThreadBound
Source§impl Default for ThreadBound
impl Default for ThreadBound
impl Eq for ThreadBound
Source§impl Hash for ThreadBound
impl Hash for ThreadBound
Source§impl Ord for ThreadBound
impl Ord for ThreadBound
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ThreadBound
impl PartialEq for ThreadBound
Source§impl PartialOrd for ThreadBound
impl PartialOrd for ThreadBound
impl StructuralPartialEq for ThreadBound
Auto Trait Implementations§
impl !Send for ThreadBound
impl !Sync for ThreadBound
impl Forget for ThreadBound
impl Freeze for ThreadBound
impl RefUnwindSafe for ThreadBound
impl Unpin for ThreadBound
impl UnsafeUnpin for ThreadBound
impl UnwindSafe for ThreadBound
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more