pub struct StatusLine {
pub left: String,
pub center: String,
pub right: String,
}Expand description
Status line content rendered at the bottom of the shell.
Fields§
§left: StringLeft-aligned status text.
center: StringCenter status text.
right: StringRight-aligned status text.
Implementations§
Source§impl StatusLine
impl StatusLine
Sourcepub fn with_center(self, text: impl Into<String>) -> Self
pub fn with_center(self, text: impl Into<String>) -> Self
Set the center text.
Sourcepub fn with_right(self, text: impl Into<String>) -> Self
pub fn with_right(self, text: impl Into<String>) -> Self
Set the right-aligned text.
Trait Implementations§
Source§impl Clone for StatusLine
impl Clone for StatusLine
Source§fn clone(&self) -> StatusLine
fn clone(&self) -> StatusLine
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 moreSource§impl Debug for StatusLine
impl Debug for StatusLine
Source§impl Default for StatusLine
impl Default for StatusLine
Source§fn default() -> StatusLine
fn default() -> StatusLine
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StatusLine
impl RefUnwindSafe for StatusLine
impl Send for StatusLine
impl Sync for StatusLine
impl Unpin for StatusLine
impl UnsafeUnpin for StatusLine
impl UnwindSafe for StatusLine
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