pub struct EditorView<'a> { /* private fields */ }Expand description
The editor widget renders the input area with border and cursor.
Implementations§
Source§impl<'a> EditorView<'a>
impl<'a> EditorView<'a>
pub fn new( state: &'a EditorState, theme: &'a Theme, thinking_level: ThinkingLevel, ) -> Self
pub fn summarize_paste(self, summarize: bool) -> Self
pub fn identity(self, cwd: &'a str, session_name: &'a str) -> Self
pub fn turn_elapsed(self, elapsed: Option<Duration>) -> Self
pub fn extension_items( self, items: &'a HashMap<String, String>, peek: bool, ) -> Self
pub fn streaming(self, streaming: bool) -> Self
pub fn queued(self, preview: Option<String>) -> Self
pub fn context_usage( self, current_tokens: u32, context_window: u32, show: bool, ) -> Self
pub fn tick(self, tick: u64) -> Self
pub fn animation_level(self, level: AnimationLevel) -> Self
pub fn activity_state(self, state: AnimationState) -> Self
pub fn workflow_mode(self, mode: WorkflowMode) -> Self
pub fn mana_scope_label(self, label: Option<String>) -> Self
pub fn mana_run_label(self, label: Option<String>) -> Self
pub fn build_loop_label(self, label: Option<String>) -> Self
pub fn improve_status_label(self, label: Option<String>) -> Self
pub fn loop_label(self, label: Option<String>) -> Self
pub fn git_label(self, label: Option<String>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for EditorView<'a>
impl<'a> RefUnwindSafe for EditorView<'a>
impl<'a> Send for EditorView<'a>
impl<'a> Sync for EditorView<'a>
impl<'a> Unpin for EditorView<'a>
impl<'a> UnsafeUnpin for EditorView<'a>
impl<'a> UnwindSafe for EditorView<'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