Function cursive::utils::suffix_length
[−]
[src]
pub fn suffix_length<'a, I>(iter: I, width: usize, delimiter: &str) -> usize where I: DoubleEndedIterator<Item=&'a str>
Computes the length of a 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)