Skip to main content

width_for_labels

Function width_for_labels 

Source
pub fn width_for_labels(name: &str, type_label: &str) -> u32
Expand description

Minimum port width (grid units) that comfortably fits the pin’s labels: half the longer of name / type_label, floored at MIN_PORT_WIDTH.