pub struct RatatuiHandle { /* private fields */ }
Implementations§
Source§impl RatatuiHandle
impl RatatuiHandle
pub fn append_line( &self, kind: RatatuiMessageKind, segments: Vec<RatatuiSegment>, )
pub fn inline(&self, kind: RatatuiMessageKind, segment: RatatuiSegment)
pub fn replace_last( &self, count: usize, kind: RatatuiMessageKind, lines: Vec<Vec<RatatuiSegment>>, )
pub fn set_prompt(&self, prefix: String, style: RatatuiTextStyle)
pub fn set_placeholder(&self, hint: Option<String>)
pub fn set_placeholder_with_style( &self, hint: Option<String>, style: Option<RatatuiTextStyle>, )
pub fn set_theme(&self, theme: RatatuiTheme)
pub fn update_status_bar( &self, left: Option<String>, center: Option<String>, right: Option<String>, )
pub fn set_cursor_visible(&self, visible: bool)
pub fn set_input_enabled(&self, enabled: bool)
pub fn shutdown(&self)
Trait Implementations§
Source§impl Clone for RatatuiHandle
impl Clone for RatatuiHandle
Source§fn clone(&self) -> RatatuiHandle
fn clone(&self) -> RatatuiHandle
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for RatatuiHandle
impl RefUnwindSafe for RatatuiHandle
impl Send for RatatuiHandle
impl Sync for RatatuiHandle
impl Unpin for RatatuiHandle
impl UnwindSafe for RatatuiHandle
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§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