Skip to main content

DISPLAY_CAP

Constant DISPLAY_CAP 

Source
pub const DISPLAY_CAP: usize = SMALL_THRESHOLD; // 4_096usize
Expand description

Total byte budget for the display slice of a bounded (Content/Unknown) output.

Defined as SMALL_THRESHOLD so the invariant “we never display more bytes than the passthrough budget” is compiler-enforced rather than maintained by convention. Split 60 % head / 40 % tail, mirroring smart_truncate’s ratio.