pub struct ThreadRoot<T: 'static>(pub fn() -> &'static T);Expand description
The handle of a thread_static! value: it derefs to this thread’s value, so the call sites of a former
#[thread_local] static (REPORT.borrow_mut(), *TOKEN_RELAX) read as before (issue #143).
Tuple Fields§
§0: fn() -> &'static TTrait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ThreadRoot<T>
impl<T> RefUnwindSafe for ThreadRoot<T>
impl<T> Send for ThreadRoot<T>
impl<T> Sync for ThreadRoot<T>
impl<T> Unpin for ThreadRoot<T>
impl<T> UnsafeUnpin for ThreadRoot<T>
impl<T> UnwindSafe for ThreadRoot<T>
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