pub struct InputWidget<'a> {
pub input: &'a str,
pub showing_command_hints: bool,
pub theme: &'a Theme,
pub reasoning_active: bool,
pub exit_armed: bool,
pub rewind_armed: 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.
exit_armed: boolA first Ctrl+C armed the exit confirmation; show the second-press hint in the box title while the window is open (idle-state surface — the busy-state hint lives in the status line).
rewind_armed: boolA first idle Esc armed the double-Esc rewind; show the second-press hint in the box title while the window is open. Exit arming wins when both are somehow live (quitting is the more consequential act).
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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>
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>
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