pub fn popup_rect(
input_area: Rect,
candidate_count: usize,
frame_area: Rect,
) -> Option<Rect>Expand description
Compute the rectangle to render the popup in, given the input
box’s area and the number of candidate rows. Returns None
when the popup doesn’t fit (terminal too short or candidates
empty).