pub struct StatusSection {
pub content: String,
pub fg: Option<Color>,
pub bg: Option<Color>,
pub bold: bool,
pub min_width: u16,
pub priority: u8,
}Expand description
A section in the status bar
Fields§
§content: StringSection content
fg: Option<Color>Foreground color
bg: Option<Color>Background color
bold: boolBold text
min_width: u16Minimum width
priority: u8Priority (higher = more important, kept when space is limited)
Implementations§
Source§impl StatusSection
impl StatusSection
Trait Implementations§
Source§impl Clone for StatusSection
impl Clone for StatusSection
Source§fn clone(&self) -> StatusSection
fn clone(&self) -> StatusSection
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 StatusSection
impl RefUnwindSafe for StatusSection
impl Send for StatusSection
impl Sync for StatusSection
impl Unpin for StatusSection
impl UnsafeUnpin for StatusSection
impl UnwindSafe for StatusSection
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