pub struct InputDialog<'p, 'c> { /* private fields */ }
Implementations§
Source§impl<'p, 'c> InputDialog<'p, 'c>
impl<'p, 'c> InputDialog<'p, 'c>
pub fn validation_message(&self) -> Option<Cow<'static, str>>
Source§impl<'p, 'c> InputDialog<'p, 'c>
impl<'p, 'c> InputDialog<'p, 'c>
pub fn with_content(self, text: &str) -> Self
Sourcepub fn with_prompt(self, prompt: Prompt<'p>) -> Self
pub fn with_prompt(self, prompt: Prompt<'p>) -> Self
pub fn with_placeholder(self, placeholder: &'static str) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_cursor_mode(self, cursor_mode: CursorMode) -> Self
pub fn with_mask(self, mask: InputMask) -> Self
pub fn with_validator(self, validator: Validator<'static>) -> Self
pub fn with_confirmation(self, confirmation: Confirmation<'c>) -> Self
pub fn with_theme<T: Into<Cow<'static, Theme>>>(self, theme: T) -> Self
pub fn with_completions(self, completions: Vec<Cow<'static, str>>) -> Self
Trait Implementations§
Source§impl<'p, 'c> Debug for InputDialog<'p, 'c>
impl<'p, 'c> Debug for InputDialog<'p, 'c>
Source§impl<'p, 'c> Default for InputDialog<'p, 'c>
impl<'p, 'c> Default for InputDialog<'p, 'c>
Source§fn default() -> InputDialog<'p, 'c>
fn default() -> InputDialog<'p, 'c>
Returns the “default value” for a type. Read more
Source§impl<'p, 'c> Dialog for InputDialog<'p, 'c>
impl<'p, 'c> Dialog for InputDialog<'p, 'c>
type Update = Update
type Output = String
fn update_for_event(event: Event) -> Option<Self::Update>
fn perform_update(&mut self, update: Self::Update) -> Result<()>
fn state(&self) -> DialogState
fn output(self) -> Self::Output
fn viewport(&self) -> Viewport
fn draw(&mut self, frame: &mut Frame<'_>)
fn tick(&mut self) -> bool
fn timeout(&self) -> Option<Duration>
fn run(self) -> Result<Self::Output>
fn tick_rate(&self) -> Duration
Auto Trait Implementations§
impl<'p, 'c> !Freeze for InputDialog<'p, 'c>
impl<'p, 'c> !RefUnwindSafe for InputDialog<'p, 'c>
impl<'p, 'c> !Send for InputDialog<'p, 'c>
impl<'p, 'c> !Sync for InputDialog<'p, 'c>
impl<'p, 'c> Unpin for InputDialog<'p, 'c>
impl<'p, 'c> !UnwindSafe for InputDialog<'p, 'c>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more