pub fn visual_runs(line: Range<usize>, levels: &[Level]) -> Vec<LevelRun>
👎Deprecated since 0.3.0: please use BidiInfo::visual_runs() instead.
Expand description

Find the level runs within a line and return them in visual order.

NOTE: This implementation is incomplete. The algorithm needs information about the text, including original BidiClass property of each character, to be able to perform correctly. Please see BidiInfo::visual_runs() for the improved implementation.

line is a range of bytes indices within levels.