pub struct Handle<Q>where
Q: Question,{ /* private fields */ }Expand description
A typed reference to one question in a Questions batch.
Keep the handle returned by a builder method, then pass it to
Answers::get after evaluation. The marker Q
selects the answer type at compile time. Passing a handle from another
batch is a caller error and panics when the answer is retrieved.
Trait Implementations§
impl<Q> Copy for Handle<Q>where
Q: Question,
Auto Trait Implementations§
impl<Q> Forget for Handle<Q>
impl<Q> Freeze for Handle<Q>where
PhantomData<Q>: Freeze,
impl<Q> Move for Handle<Q>
impl<Q> RefUnwindSafe for Handle<Q>where
PhantomData<Q>: RefUnwindSafe,
impl<Q> Send for Handle<Q>where
PhantomData<Q>: Send,
impl<Q> Sync for Handle<Q>where
PhantomData<Q>: Sync,
impl<Q> Unpin for Handle<Q>where
PhantomData<Q>: Unpin,
impl<Q> UnsafeUnpin for Handle<Q>where
PhantomData<Q>: UnsafeUnpin,
impl<Q> UnwindSafe for Handle<Q>where
PhantomData<Q>: UnwindSafe,
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