pub struct ExpandItem {
pub key: char,
pub text: String,
}Fields§
§key: charThe key associated with the choice
text: StringThe content of the choice – it is what was displayed to the user
Trait Implementations§
Source§impl Clone for ExpandItem
impl Clone for ExpandItem
Source§fn clone(&self) -> ExpandItem
fn clone(&self) -> ExpandItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExpandItem
impl Debug for ExpandItem
Source§impl From<ExpandItem> for Answer
impl From<ExpandItem> for Answer
Source§fn from(ans: ExpandItem) -> Self
fn from(ans: ExpandItem) -> Self
Converts to this type from the input type.
Source§impl Hash for ExpandItem
impl Hash for ExpandItem
Source§impl Ord for ExpandItem
impl Ord for ExpandItem
Source§fn cmp(&self, other: &ExpandItem) -> Ordering
fn cmp(&self, other: &ExpandItem) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ExpandItem
impl PartialEq for ExpandItem
Source§impl PartialOrd for ExpandItem
impl PartialOrd for ExpandItem
impl Eq for ExpandItem
impl StructuralPartialEq for ExpandItem
Auto Trait Implementations§
impl Freeze for ExpandItem
impl RefUnwindSafe for ExpandItem
impl Send for ExpandItem
impl Sync for ExpandItem
impl Unpin for ExpandItem
impl UnwindSafe for ExpandItem
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