pub struct StatusBar { /* private fields */ }
Expand description
Status bar component showing application information
Implementations§
Source§impl StatusBar
impl StatusBar
Sourcepub fn set_file_path(&mut self, path: Option<String>)
pub fn set_file_path(&mut self, path: Option<String>)
Set the current file path
Sourcepub fn set_cursor_position(&mut self, x: u16, y: u16)
pub fn set_cursor_position(&mut self, x: u16, y: u16)
Set cursor position
Sourcepub fn set_selection_info(&mut self, info: Option<String>)
pub fn set_selection_info(&mut self, info: Option<String>)
Set selection information
Sourcepub fn update_theme(&mut self, theme: &dyn Theme)
pub fn update_theme(&mut self, theme: &dyn Theme)
Update theme
Auto Trait Implementations§
impl Freeze for StatusBar
impl !RefUnwindSafe for StatusBar
impl Send for StatusBar
impl Sync for StatusBar
impl Unpin for StatusBar
impl !UnwindSafe for StatusBar
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> 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