Skip to main content

bidi_info

Function bidi_info 

pub fn bidi_info(text: &str) -> BidiInfo<'_>
Expand description

The Unicode Bidirectional Algorithm (UAX #9) run over text with its paragraph direction taken from its first strong character: the embedding level of every byte and the paragraphs, for code that orders a line’s runs itself.

Call this rather than unicode_bidi::BidiInfo::new, which is generic over its character data and text: an app calling it compiled the whole algorithm again, while this one is compiled once, into the toolkit.