foundry_debugger::tui::draw

Function hex_digits

Source
fn hex_digits(n: usize) -> usize
Expand description

Returns the number of hexadecimal digits in the given number.

This is the same as format!("{n:x}").len().