pub struct DisplayStyle { /* private fields */ }Implementations§
Source§impl DisplayStyle
impl DisplayStyle
pub fn from_config(config: Option<&Config>) -> Self
pub fn from_icon_mode(icon_mode: IconMode) -> Self
pub fn new(icon_mode: IconMode, icon_colors: IconColors) -> Self
pub fn icons_enabled(self) -> bool
pub fn icon_mode(self) -> IconMode
pub fn icon_colors(self) -> IconColors
pub fn session_label(self, value: &str) -> String
pub fn current_session_label(self, value: &str) -> String
pub fn directory_label(self, value: &str) -> String
pub fn template_label(self, value: &str) -> String
pub fn project_label(self, value: &str) -> String
pub fn invalid_project_label(self, name: &str, error: &str) -> String
Trait Implementations§
Source§impl Clone for DisplayStyle
impl Clone for DisplayStyle
Source§fn clone(&self) -> DisplayStyle
fn clone(&self) -> DisplayStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DisplayStyle
Source§impl Debug for DisplayStyle
impl Debug for DisplayStyle
impl Eq for DisplayStyle
Source§impl PartialEq for DisplayStyle
impl PartialEq for DisplayStyle
Source§fn eq(&self, other: &DisplayStyle) -> bool
fn eq(&self, other: &DisplayStyle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DisplayStyle
Auto Trait Implementations§
impl Freeze for DisplayStyle
impl RefUnwindSafe for DisplayStyle
impl Send for DisplayStyle
impl Sync for DisplayStyle
impl Unpin for DisplayStyle
impl UnsafeUnpin for DisplayStyle
impl UnwindSafe for DisplayStyle
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