Guide API
Skip to main content

divider_junction

Function divider_junction 

Source
pub fn divider_junction(dir: Junction, weight: Weight, g: &Glyphs) -> char
Expand description

Pick the box-drawing junction where two dividers meet in the interior.

dir is the visual shape (which way the branch points); weight is the shared divider weight. For this feature both the through-divider and the branching divider carry the same weight at draw time (a divider never changes weight), so a single weight parameter suffices — mixed interior crossings are out of scope (the spec’s non-goals).