Struct branchless::core::formatting::Glyphs[][src]

pub struct Glyphs {
Show fields pub should_write_ansi_escape_codes: bool, pub line: &'static str, pub line_with_offshoot: &'static str, pub vertical_ellipsis: &'static str, pub slash: &'static str, pub commit_visible: &'static str, pub commit_visible_head: &'static str, pub commit_hidden: &'static str, pub commit_hidden_head: &'static str, pub commit_main: &'static str, pub commit_main_head: &'static str, pub commit_main_hidden: &'static str, pub commit_main_hidden_head: &'static str, pub bullet_point: &'static str,
}
Expand description

Glyphs to use for rendering the smartlog.

Fields

should_write_ansi_escape_codes: bool

Whether or not ANSI escape codes should be emitted (e.g. to render color).

line: &'static str

Line connecting a parent commit to its single child commit.

line_with_offshoot: &'static str

Line connecting a parent commit with two or more child commits.

vertical_ellipsis: &'static str

Denotes an omitted sequence of commits.

slash: &'static str

Line used to connect a parent commit to its non-first child commit.

commit_visible: &'static str

Cursor for a visible commit which is not currently checked out.

commit_visible_head: &'static str

Cursor for the visible commit which is currently checked out.

commit_hidden: &'static str

Cursor for a hidden commit.

commit_hidden_head: &'static str

Cursor for the hidden commit which is currently checked out.

commit_main: &'static str

Cursor for a commit belonging to the main branch, which is not currently checked out.

commit_main_head: &'static str

Cursor for a commit belonging to the main branch, which is currently checked out.

commit_main_hidden: &'static str

Cursor for a hidden commit belonging to the main branch. (This is an unusual situation.)

commit_main_hidden_head: &'static str

Cursor for a hidden commit belonging to the main branch, which is currently checked out. (This is an unusual situation.)

bullet_point: &'static str

Bullet-point character for a list of newline-separated items.

Implementations

Make the Glyphs object appropriate for stdout.

Glyphs used for output to a text file or non-TTY.

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

Performs the conversion.

Performs the conversion.

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.

Calls the given closure and return the result. Read more

Calls the given closure on self.

Calls the given closure on self.

Calls the given closure if condition == true.