Function cursive::utils::suffix [] [src]

pub fn suffix<'a, I>(iter: I, width: usize, delimiter: &str) -> Prefix where
    I: DoubleEndedIterator<Item = &'a str>, 

Computes the length (number of bytes) and width 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)