fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
		if !self.valid() {
			panic!(DEREF_ERROR);
		}
		// This is safe as `self.data` is guaranteed to be alive as long
		// as `self` is alive.
		f.debug_struct("SendWrapper")
			.field("data", unsafe { &*self.data })
			.field("thread_id", &self.thread_id)
			.finish()
	}
/// Formats the value using the given formatter.
///
/// # Panics
/// Formatting panics if it is done from a different thread than the one
/// the SendWrapper<T> instance has been created with.
Formats the value using the given formatter.
Formats the value using the given formatter .
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
		if !self.valid() {
			panic!(DEREF_ERROR);
		}
		// This is safe as `self.data` is guaranteed to be alive as long
		// as `self` is alive.
		f.debug_struct("SendWrapper")
			.field("data", unsafe { &*self.data })
			.field("thread_id", &self.thread_id)
			.finish()
	}
fn fmt ( & self , f : & mut fmt :: Formatter < ' _ > ) -> fmt :: Result { if ! self . valid ( ) { panic ! ( DEREF_ERROR ) ; } // This is safe as `self.data` is guaranteed to be alive as long // as `self` is alive. f . debug_struct ( " " ) . field ( " " , unsafe { & * self . data } ) . field ( " " , & self . thread_id ) . finish ( ) }
Formats the value using the given formatter.
Formats the value using the given formatter .
&self
f
&mut fmt::Formatter<'_>
&self
f
&mut fmt::Formatter<'_>
panics
Formatting panics if it is done from a different thread than the one
the SendWrapper instance has been created with.
Formatting panics if it is done from a different thread than the one the SendWrapper instance has been created with .