pub struct Select { /* private fields */ }Implementations§
Source§impl Select
impl Select
pub fn new(prompt: impl Into<String>) -> Self
pub fn option(self, label: impl Into<String>, value: InputValue) -> Self
pub fn options(self, options: Vec<(String, InputValue)>) -> Self
Sourcepub fn run(self, ctx: &mut dyn Context) -> Result<InputValue>
pub fn run(self, ctx: &mut dyn Context) -> Result<InputValue>
Run with custom terminal (for testing with MockTerminal)
Auto Trait Implementations§
impl Freeze for Select
impl RefUnwindSafe for Select
impl Send for Select
impl Sync for Select
impl Unpin for Select
impl UnwindSafe for Select
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