pub struct AnswerView<T> {
pub answer: T,
pub label: String,
pub focused: bool,
}Expand description
One answer to a question.
Fields§
§answer: TWhich answer it is.
label: StringIts name.
focused: boolWhether the cursor is on it.
Trait Implementations§
Source§impl<T: Clone> Clone for AnswerView<T>
impl<T: Clone> Clone for AnswerView<T>
Source§fn clone(&self) -> AnswerView<T>
fn clone(&self) -> AnswerView<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for AnswerView<T>
impl<T: Debug> Debug for AnswerView<T>
impl<T: Eq> Eq for AnswerView<T>
Source§impl<T: PartialEq> PartialEq for AnswerView<T>
impl<T: PartialEq> PartialEq for AnswerView<T>
impl<T: PartialEq> StructuralPartialEq for AnswerView<T>
Auto Trait Implementations§
impl<T> Freeze for AnswerView<T>where
T: Freeze,
impl<T> RefUnwindSafe for AnswerView<T>where
T: RefUnwindSafe,
impl<T> Send for AnswerView<T>where
T: Send,
impl<T> Sync for AnswerView<T>where
T: Sync,
impl<T> Unpin for AnswerView<T>where
T: Unpin,
impl<T> UnsafeUnpin for AnswerView<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for AnswerView<T>where
T: 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