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

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

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)