pub fn suffix<'a, I>(iter: I, width: usize, delimiter: &str) -> Spanwhere
I: DoubleEndedIterator<Item = &'a str>,
Expand description
Computes the longest suffix that fits in the given width
.
Doesn’t break inside elements returned by iter
.
Returns the number of bytes of the longest
suffix from text
that fits in width
.
This is a shortcut for prefix_length(iter.rev(), width, delimiter)