pub fn truncate<T>(s: T, len: usize) -> Result<String, Error> where
    T: Display
Expand description

Limit string length, appends ‘…’ if truncated