pub struct CliTheme { /* private fields */ }Expand description
Theme-derived styles and canonical presentations for CLI output.
Implementations§
Source§impl CliTheme
impl CliTheme
Sourcepub fn from_theme(theme: &Theme) -> Self
pub fn from_theme(theme: &Theme) -> Self
Derives the canonical CLI presentation language from a core theme.
Sourcepub fn get_style(&self, role: CliRole) -> &TextStyle
pub fn get_style(&self, role: CliRole) -> &TextStyle
Returns the style assigned to one CLI role.
Sourcepub fn summary_presentation(&self) -> &SummaryPresentation
pub fn summary_presentation(&self) -> &SummaryPresentation
Returns the canonical summary presentation.
Sourcepub fn warning_presentation(&self) -> &WarningPresentation
pub fn warning_presentation(&self) -> &WarningPresentation
Returns the canonical warning presentation.
Sourcepub fn summary(&self, summary: &Summary) -> View
pub fn summary(&self, summary: &Summary) -> View
Composes a summary with the canonical presentation.
Trait Implementations§
impl Eq for CliTheme
impl StructuralPartialEq for CliTheme
Auto Trait Implementations§
impl Freeze for CliTheme
impl RefUnwindSafe for CliTheme
impl Send for CliTheme
impl Sync for CliTheme
impl Unpin for CliTheme
impl UnsafeUnpin for CliTheme
impl UnwindSafe for CliTheme
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