In version 0.2.2 :
use unicode_width::{UnicodeWidthChar, UnicodeWidthStr};
fn main() {
let c = '\n';
let s = "\n";
println!("char width: {:?}", c.width()); // Returns None
println!("str width: {:?}", s.width()); // Returns 1
}
Is that a bug or a feature?