pub trait DisplayWidth {
const DISPLAY_WIDTH: usize;
// Provided method
fn chunks(s: &str) -> Chunks<'_, Self> ⓘ { ... }
}
Expand description
A type implementing DisplayWidth
has a constant width for display and parsing.
This makes it suitable for 2d cartesian maps.
Required Associated Constants§
const DISPLAY_WIDTH: usize
Provided Methods§
Object Safety§
This trait is not object safe.