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§
Source§impl Clone for OrderSelectItem
impl Clone for OrderSelectItem
Source§fn clone(&self) -> OrderSelectItem
fn clone(&self) -> OrderSelectItem
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 OrderSelectItem
impl Debug for OrderSelectItem
Source§impl From<OrderSelectItem> for ListItem
impl From<OrderSelectItem> for ListItem
Source§fn from(o: OrderSelectItem) -> Self
fn from(o: OrderSelectItem) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OrderSelectItem
impl PartialEq for OrderSelectItem
Source§impl Widget for OrderSelectItem
impl Widget for OrderSelectItem
Source§fn 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
Source§fn 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
Source§fn 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
Source§fn 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 StructuralPartialEq for OrderSelectItem
Auto Trait Implementations§
impl Freeze for OrderSelectItem
impl RefUnwindSafe for OrderSelectItem
impl Send for OrderSelectItem
impl Sync for OrderSelectItem
impl Unpin for OrderSelectItem
impl UnwindSafe for OrderSelectItem
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