pub struct StatusLine { /* private fields */ }Expand description
Statusbar with multiple sections.
Implementations§
Source§impl StatusLine
impl StatusLine
Sourcepub fn layout<It, Item>(self, widths: It) -> Self
pub fn layout<It, Item>(self, widths: It) -> Self
Layout for the sections.
This layout determines the number of sections. If the styles or the status text vec differ, defaults are used.
Sourcepub fn section_styles(
self,
style: impl IntoIterator<Item = impl Into<Style>>,
) -> Self
pub fn section_styles( self, style: impl IntoIterator<Item = impl Into<Style>>, ) -> Self
Styles for each section.
Sourcepub fn styles(self, styles: StatusLineStyle) -> Self
pub fn styles(self, styles: StatusLineStyle) -> Self
Set all styles.
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
Source§impl StatefulWidget for &StatusLine
impl StatefulWidget for &StatusLine
Source§impl StatefulWidget for StatusLine
impl StatefulWidget for StatusLine
Auto Trait Implementations§
impl Freeze for StatusLine
impl RefUnwindSafe for StatusLine
impl Send for StatusLine
impl Sync for StatusLine
impl Unpin 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
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