pub unsafe fn tag_from_context<'a>(ctx: &'a mut Context<'_>) -> &'a T {
        let waker = ctx.waker();
        let hack = core::mem::transmute::<&Waker, &RawWaker>(waker);
        let hack = &*(hack as *const RawWaker as *const RawWakerHack);
        let offset = Header::offset_tag::<T>();

        let raw = (hack.data as *mut u8).add(offset) as *const T;
        &*raw
    }
/// Extract a reference to the currently running task's tag from a &mut core::task::Context
Extract a reference to the currently running task's tag from a &mut core::task::Context
Extract a reference to the currently running task ' s tag from a &mut core :: task :: Context
pub unsafe fn tag_from_context<'a>(ctx: &'a mut Context<'_>) -> &'a T {
        let waker = ctx.waker();
        let hack = core::mem::transmute::<&Waker, &RawWaker>(waker);
        let hack = &*(hack as *const RawWaker as *const RawWakerHack);
        let offset = Header::offset_tag::<T>();
        let raw = (hack.data as *mut u8).add(offset) as *const T;
        &*raw
    }
pub unsafe fn tag_from_context < ' a > ( ctx : & ' a mut Context < ' _ > ) -> & ' a T { let waker = ctx . waker ( ) ; let hack = core :: mem :: transmute :: < & Waker , & RawWaker > ( waker ) ; let hack = & * ( hack as * const RawWaker as * const RawWakerHack ) ; let offset = Header :: offset_tag :: < T > ( ) ; let raw = ( hack . data as * mut u8 ) . add ( offset ) as * const T ; & * raw }
Extract a reference to the currently running task's tag from a &mut core::task::Context
Extract a reference to the currently running task ' s tag from a &mut core :: task :: Context
ctx
&'a mut Context<'_>
ctx
&'a mut Context<'_>