pub struct Section {
pub kind: SectionKind,
pub content: String,
pub priority: u16,
pub colors: SectionColors,
pub width: usize,
}Fields§
§kind: SectionKind§content: String§priority: u16§colors: SectionColors§width: usizeImplementations§
Source§impl Section
impl Section
pub fn new(content: String, priority: u16, colors: SectionColors) -> Self
pub fn new_quota_compact( label: &str, content: String, priority: u16, colors: SectionColors, ) -> Self
pub fn new_quota_detailed( label: &str, content: String, priority: u16, colors: SectionColors, ) -> Self
pub fn new_context_compact( content: String, priority: u16, colors: SectionColors, ) -> Self
pub fn new_context_detailed( content: String, priority: u16, colors: SectionColors, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnwindSafe for Section
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