pub struct Log { /* private fields */ }Implementations§
Source§impl Log
impl Log
pub fn new(label: impl Into<Cow<'static, str>>) -> Self
pub fn placeholder(self, text: impl Into<Cow<'static, str>>) -> Self
pub fn hint(self, text: impl Into<Cow<'static, str>>) -> Self
pub fn follow(self, follow: bool) -> Self
pub fn keys(self, keys: Keys) -> Self
pub fn search_keys(self, keys: &'static [Key]) -> Self
pub fn hit_keys(self, next: &'static [Key], previous: &'static [Key]) -> Self
pub fn copy_keys(self, page: &'static [Key], all: &'static [Key]) -> Self
pub fn lines(&self) -> &Lines
pub fn set_lines(&mut self, lines: Lines)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn top(&self) -> usize
pub fn hits(&self) -> usize
pub fn hit(&self) -> Option<usize>
pub fn query(&self) -> &str
pub fn typing(&self) -> bool
pub fn bar(&self) -> Option<InputBar<'_>>
pub fn key(&mut self, event: KeyEvent) -> Turn
pub fn paste(&mut self, text: &str) -> Turn
pub fn draw(&mut self, frame: &mut Frame<'_>, area: Rect, palette: &Palette)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Log
impl RefUnwindSafe for Log
impl Send for Log
impl Sync for Log
impl Unpin for Log
impl UnsafeUnpin for Log
impl UnwindSafe for Log
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> 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