Struct git_graph::graph::BranchVis

source ·
pub struct BranchVis {
    pub order_group: usize,
    pub target_order_group: Option<usize>,
    pub source_order_group: Option<usize>,
    pub term_color: u8,
    pub svg_color: String,
    pub column: Option<usize>,
}
Expand description

Branch properties for visualization.

Fields

order_group: usize

The branch’s column group (left to right)

target_order_group: Option<usize>

The branch’s merge target column group (left to right)

source_order_group: Option<usize>

The branch’s source branch column group (left to right)

term_color: u8

The branch’s terminal color (index in 256-color palette)

svg_color: String

SVG color (name or RGB in hex annotation)

column: Option<usize>

The column the branch is located in

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 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.