pub fn render_segment(kind: SegmentKind, value: i32) -> String
Format a value into its segment string.