Skip to main content

usable_content_width_u16

Function usable_content_width_u16 

Source
pub fn usable_content_width_u16(
    total_width: u16,
    reserved_cols: u16,
) -> Option<usize>
Expand description

u16 convenience wrapper around usable_content_width.

This keeps width math at callsites that receive terminal dimensions as u16 while preserving the same None contract for exhausted width.