Struct broot::skin::StyleMap

source ·
pub struct StyleMap {
Show 67 fields pub default: CompoundStyle, pub tree: CompoundStyle, pub parent: CompoundStyle, pub file: CompoundStyle, pub directory: CompoundStyle, pub exe: CompoundStyle, pub link: CompoundStyle, pub pruning: CompoundStyle, pub perm__: CompoundStyle, pub perm_r: CompoundStyle, pub perm_w: CompoundStyle, pub perm_x: CompoundStyle, pub owner: CompoundStyle, pub group: CompoundStyle, pub count: CompoundStyle, pub dates: CompoundStyle, pub sparse: CompoundStyle, pub content_extract: CompoundStyle, pub content_match: CompoundStyle, pub device_id_major: CompoundStyle, pub device_id_sep: CompoundStyle, pub device_id_minor: CompoundStyle, pub git_branch: CompoundStyle, pub git_insertions: CompoundStyle, pub git_deletions: CompoundStyle, pub git_status_current: CompoundStyle, pub git_status_modified: CompoundStyle, pub git_status_new: CompoundStyle, pub git_status_ignored: CompoundStyle, pub git_status_conflicted: CompoundStyle, pub git_status_other: CompoundStyle, pub selected_line: CompoundStyle, pub char_match: CompoundStyle, pub file_error: CompoundStyle, pub flag_label: CompoundStyle, pub flag_value: CompoundStyle, pub input: CompoundStyle, pub status_error: CompoundStyle, pub status_job: CompoundStyle, pub status_normal: CompoundStyle, pub status_italic: CompoundStyle, pub status_bold: CompoundStyle, pub status_code: CompoundStyle, pub status_ellipsis: CompoundStyle, pub purpose_normal: CompoundStyle, pub purpose_italic: CompoundStyle, pub purpose_bold: CompoundStyle, pub purpose_ellipsis: CompoundStyle, pub scrollbar_track: CompoundStyle, pub scrollbar_thumb: CompoundStyle, pub help_paragraph: CompoundStyle, pub help_bold: CompoundStyle, pub help_italic: CompoundStyle, pub help_code: CompoundStyle, pub help_headers: CompoundStyle, pub help_table_border: CompoundStyle, pub preview: CompoundStyle, pub preview_title: CompoundStyle, pub preview_line_number: CompoundStyle, pub preview_match: CompoundStyle, pub hex_null: CompoundStyle, pub hex_ascii_graphic: CompoundStyle, pub hex_ascii_whitespace: CompoundStyle, pub hex_ascii_other: CompoundStyle, pub hex_non_ascii: CompoundStyle, pub staging_area_title: CompoundStyle, pub mode_command_mark: CompoundStyle, /* private fields */
}
Expand description

a struct whose fields are

  • a boolean telling whether it’s a no-style map
  • the styles to apply to various parts/cases

Fields§

§default: CompoundStyle§tree: CompoundStyle§parent: CompoundStyle§file: CompoundStyle§directory: CompoundStyle§exe: CompoundStyle§link: CompoundStyle§pruning: CompoundStyle§perm__: CompoundStyle§perm_r: CompoundStyle§perm_w: CompoundStyle§perm_x: CompoundStyle§owner: CompoundStyle§group: CompoundStyle§count: CompoundStyle§dates: CompoundStyle§sparse: CompoundStyle§content_extract: CompoundStyle§content_match: CompoundStyle§device_id_major: CompoundStyle§device_id_sep: CompoundStyle§device_id_minor: CompoundStyle§git_branch: CompoundStyle§git_insertions: CompoundStyle§git_deletions: CompoundStyle§git_status_current: CompoundStyle§git_status_modified: CompoundStyle§git_status_new: CompoundStyle§git_status_ignored: CompoundStyle§git_status_conflicted: CompoundStyle§git_status_other: CompoundStyle§selected_line: CompoundStyle§char_match: CompoundStyle§file_error: CompoundStyle§flag_label: CompoundStyle§flag_value: CompoundStyle§input: CompoundStyle§status_error: CompoundStyle§status_job: CompoundStyle§status_normal: CompoundStyle§status_italic: CompoundStyle§status_bold: CompoundStyle§status_code: CompoundStyle§status_ellipsis: CompoundStyle§purpose_normal: CompoundStyle§purpose_italic: CompoundStyle§purpose_bold: CompoundStyle§purpose_ellipsis: CompoundStyle§scrollbar_track: CompoundStyle§scrollbar_thumb: CompoundStyle§help_paragraph: CompoundStyle§help_bold: CompoundStyle§help_italic: CompoundStyle§help_code: CompoundStyle§help_headers: CompoundStyle§help_table_border: CompoundStyle§preview: CompoundStyle§preview_title: CompoundStyle§preview_line_number: CompoundStyle§preview_match: CompoundStyle§hex_null: CompoundStyle§hex_ascii_graphic: CompoundStyle§hex_ascii_whitespace: CompoundStyle§hex_ascii_other: CompoundStyle§hex_non_ascii: CompoundStyle§staging_area_title: CompoundStyle§mode_command_mark: CompoundStyle

Implementations§

source§

impl StyleMap

source

pub fn queue_reset<W: Write>(&self, f: &mut W) -> Result<(), ProgramError>

source§

impl StyleMap

source

pub fn no_term() -> Self

build a skin without any terminal control character (for file output)

Trait Implementations§

source§

impl Clone for StyleMap

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StyleMap

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.