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: CompoundStyletree: CompoundStyleparent: CompoundStylefile: CompoundStyledirectory: CompoundStyleexe: CompoundStylelink: CompoundStylepruning: CompoundStyleperm__: CompoundStyleperm_r: CompoundStyleperm_w: CompoundStyleperm_x: CompoundStyleowner: CompoundStylegroup: CompoundStylecount: CompoundStyledates: CompoundStylesparse: CompoundStylecontent_extract: CompoundStylecontent_match: CompoundStyledevice_id_major: CompoundStyledevice_id_sep: CompoundStyledevice_id_minor: CompoundStylegit_branch: CompoundStylegit_insertions: CompoundStylegit_deletions: CompoundStylegit_status_current: CompoundStylegit_status_modified: CompoundStylegit_status_new: CompoundStylegit_status_ignored: CompoundStylegit_status_conflicted: CompoundStylegit_status_other: CompoundStyleselected_line: CompoundStylechar_match: CompoundStylefile_error: CompoundStyleflag_label: CompoundStyleflag_value: CompoundStyleinput: CompoundStylestatus_error: CompoundStylestatus_job: CompoundStylestatus_normal: CompoundStylestatus_italic: CompoundStylestatus_bold: CompoundStylestatus_code: CompoundStylestatus_ellipsis: CompoundStylepurpose_normal: CompoundStylepurpose_italic: CompoundStylepurpose_bold: CompoundStylepurpose_ellipsis: CompoundStylescrollbar_track: CompoundStylescrollbar_thumb: CompoundStylehelp_paragraph: CompoundStylehelp_bold: CompoundStylehelp_italic: CompoundStylehelp_code: CompoundStylehelp_headers: CompoundStylehelp_table_border: CompoundStylepreview: CompoundStylepreview_title: CompoundStylepreview_line_number: CompoundStylepreview_match: CompoundStylehex_null: CompoundStylehex_ascii_graphic: CompoundStylehex_ascii_whitespace: CompoundStylehex_ascii_other: CompoundStylehex_non_ascii: CompoundStylestaging_area_title: CompoundStylemode_command_mark: CompoundStyle

Implementations

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

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.