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

pub struct Glyphs {
    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,
}

Glyphs to use for rendering the smartlog.

Fields

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

impl Glyphs[src]

pub fn detect() -> Self[src]

Make the Glyphs object appropriate for stdout.

pub fn text() -> Self[src]

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

Auto Trait Implementations

impl RefUnwindSafe for Glyphs

impl Send for Glyphs

impl Sync for Glyphs

impl Unpin for Glyphs

impl UnwindSafe for Glyphs

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> With for T