pub struct InputWidget<'a> {
pub input: &'a str,
pub showing_command_hints: bool,
pub theme: &'a Theme,
pub reasoning_active: bool,
}Expand description
Props for InputWidget. The slash-command palette is rendered
separately as SlashPaletteWidget in the bottom region (see
render.rs); this widget just draws the bordered input box.
Fields§
§input: &'a str§showing_command_hints: boolTrue when a slash command is in flight (input starts with /).
Drives the warning-yellow border color so the user has a visual
cue that they’re in command-entry mode.
theme: &'a Theme§reasoning_active: boolReasoning is currently enabled (any non-None level). Drives the
cyan/sage border color cue.
Trait Implementations§
Source§impl<'a> StatefulWidget for InputWidget<'a>
impl<'a> StatefulWidget for InputWidget<'a>
Auto Trait Implementations§
impl<'a> Freeze for InputWidget<'a>
impl<'a> RefUnwindSafe for InputWidget<'a>
impl<'a> Send for InputWidget<'a>
impl<'a> Sync for InputWidget<'a>
impl<'a> Unpin for InputWidget<'a>
impl<'a> UnsafeUnpin for InputWidget<'a>
impl<'a> UnwindSafe for InputWidget<'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> 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