pub struct Input<F = fn(char) -> bool, C = NonCancellable> { /* private fields */ }
Implementations§
Source§impl<F, C> Input<F, C>
impl<F, C> Input<F, C>
pub fn from_cancellation( config: Config<'_, F>, cancellation: C, ) -> Result<Self, Error>
pub fn with_title(self, title: &str) -> Self
pub fn set_title(&mut self, title: &str) -> &mut Self
pub fn with_cancellation(self, cancellation: C) -> Self
pub fn set_cancellation(&mut self, cancellation: C) -> &mut Self
pub fn with_max(self, max: Coord) -> Result<Self, Error>
pub fn set_max(&mut self, max: Coord) -> Result<&mut Self, Error>
pub fn with_style(self, style: Style) -> Self
pub fn set_style(&mut self, style: Style) -> &mut Self
pub fn with_buffer<I>(self, chars: I) -> Result<Self, usize>where
I: IntoIterator<Item = char>,
pub fn set_buffer<I>(&mut self, chars: I) -> Result<&mut Self, usize>where
I: IntoIterator<Item = char>,
pub fn style(&self) -> &Style
pub fn key_bindings(&self) -> &KeyBindingMap
pub fn cancellation(&self) -> &C
pub fn is_cancellable(&self) -> bool
pub fn is_cancelling(&self) -> bool
pub fn set_cancelling(&mut self, is_it: bool)
pub fn finish_buffer(&self) -> String
pub fn output(&self) -> C::Output
pub fn insert_char(&mut self, char: char)
pub fn delete_behind(&mut self)
pub fn delete_ahead(&mut self)
pub fn insert_chars<I>(&mut self, chars: I) -> Result<(), usize>where
I: IntoIterator<Item = char>,
pub fn move_left(&mut self)
pub fn move_right(&mut self)
pub fn title(&self) -> &str
pub fn max(&self) -> Coord
pub fn len(&self) -> Coord
pub fn cursor(&self) -> Coord
pub fn set_cursor(&mut self, position: Coord) -> Result<(), Coord>
pub fn clear_buffer(&mut self)
pub fn run_command(&mut self, cmd: Command) -> Result<bool, Error>
pub async fn run(&mut self, app: &mut App) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl<F, C> Freeze for Input<F, C>
impl<F, C> RefUnwindSafe for Input<F, C>where
F: RefUnwindSafe,
C: RefUnwindSafe,
impl<F, C> Send for Input<F, C>
impl<F, C> Sync for Input<F, C>
impl<F, C> Unpin for Input<F, C>
impl<F, C> UnwindSafe for Input<F, C>where
F: UnwindSafe,
C: 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