Struct requestty::question::OrderSelectItem
source · [−]pub struct OrderSelectItem { /* private fields */ }
Expand description
The representation of each choice in an OrderSelect
.
It is different from ListItem
due to an implementation detail.
Implementations
Trait Implementations
sourceimpl Clone for OrderSelectItem
impl Clone for OrderSelectItem
sourcefn clone(&self) -> OrderSelectItem
fn clone(&self) -> OrderSelectItem
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OrderSelectItem
impl Debug for OrderSelectItem
sourceimpl From<OrderSelectItem> for ListItem
impl From<OrderSelectItem> for ListItem
sourcefn from(o: OrderSelectItem) -> Self
fn from(o: OrderSelectItem) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<OrderSelectItem> for OrderSelectItem
impl PartialEq<OrderSelectItem> for OrderSelectItem
sourcefn eq(&self, other: &OrderSelectItem) -> bool
fn eq(&self, other: &OrderSelectItem) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Widget for OrderSelectItem
impl Widget for OrderSelectItem
sourcefn render<B: Backend>(
&mut self,
layout: &mut Layout,
backend: &mut B
) -> Result<()>
fn render<B: Backend>(
&mut self,
layout: &mut Layout,
backend: &mut B
) -> Result<()>
Render to a given backend. Read more
sourcefn height(&mut self, layout: &mut Layout) -> u16
fn height(&mut self, layout: &mut Layout) -> u16
The number of rows of the terminal the widget will take when rendered. Read more
sourcefn cursor_pos(&mut self, layout: Layout) -> (u16, u16)
fn cursor_pos(&mut self, layout: Layout) -> (u16, u16)
The position of the cursor to be placed at after render. The returned value should be in the form of (x, y), with (0, 0) being the top left of the screen. Read more
sourcefn handle_key(&mut self, key: KeyEvent) -> bool
fn handle_key(&mut self, key: KeyEvent) -> bool
Handle a key input. It should return whether key was handled.
impl Eq for OrderSelectItem
impl StructuralEq for OrderSelectItem
impl StructuralPartialEq for OrderSelectItem
Auto Trait Implementations
impl RefUnwindSafe for OrderSelectItem
impl Send for OrderSelectItem
impl Sync for OrderSelectItem
impl Unpin for OrderSelectItem
impl UnwindSafe for OrderSelectItem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more