Function unicode_bidi::deprecated::visual_runs

source ยท
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.

http://www.unicode.org/reports/tr9/#Reordering_Resolved_Levels