Struct tui_prompts::TextPrompt
source · pub struct TextPrompt<'a> { /* private fields */ }
Expand description
A prompt widget that displays a message and a text input.
Implementations§
source§impl<'a> TextPrompt<'a>
impl<'a> TextPrompt<'a>
pub const fn new(message: Cow<'a, str>) -> Self
pub fn with_block(self, block: Block<'a>) -> Self
pub const fn with_render_style(self, render_style: TextRenderStyle) -> Self
Trait Implementations§
source§impl<'a> Clone for TextPrompt<'a>
impl<'a> Clone for TextPrompt<'a>
source§fn clone(&self) -> TextPrompt<'a>
fn clone(&self) -> TextPrompt<'a>
Returns a copy 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<'a> Debug for TextPrompt<'a>
impl<'a> Debug for TextPrompt<'a>
source§impl<'a> Default for TextPrompt<'a>
impl<'a> Default for TextPrompt<'a>
source§fn default() -> TextPrompt<'a>
fn default() -> TextPrompt<'a>
Returns the “default value” for a type. Read more
source§impl<T> From<T> for TextPrompt<'static>
impl<T> From<T> for TextPrompt<'static>
source§impl<'a> PartialEq for TextPrompt<'a>
impl<'a> PartialEq for TextPrompt<'a>
source§impl Prompt for TextPrompt<'_>
impl Prompt for TextPrompt<'_>
source§impl<'a> StatefulWidget for TextPrompt<'a>
impl<'a> StatefulWidget for TextPrompt<'a>
impl<'a> Eq for TextPrompt<'a>
impl<'a> StructuralPartialEq for TextPrompt<'a>
Auto Trait Implementations§
impl<'a> Freeze for TextPrompt<'a>
impl<'a> RefUnwindSafe for TextPrompt<'a>
impl<'a> Send for TextPrompt<'a>
impl<'a> Sync for TextPrompt<'a>
impl<'a> Unpin for TextPrompt<'a>
impl<'a> UnwindSafe for TextPrompt<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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