Struct unicode_bidi::BidiInfo
[−]
[src]
pub struct BidiInfo { pub classes: Vec<BidiClass>, pub levels: Vec<u8>, pub paragraphs: Vec<ParagraphInfo>, }
Output of process_text
The classes
and levels
vectors are indexed by byte offsets into the text. If a character
is multiple bytes wide, then its class and level will appear multiple times in these vectors.
Fields
classes: Vec<BidiClass>
The BidiClass of the character at each byte in the text.
levels: Vec<u8>
The directional embedding level of each byte in the text.
paragraphs: Vec<ParagraphInfo>
The boundaries and paragraph embedding level of each paragraph within the text.
TODO: Use SmallVec or similar to avoid overhead when there are only one or two paragraphs? Or just don't include the first paragraph, which always starts at 0?
Trait Implementations
impl PartialEq for BidiInfo
[src]
fn eq(&self, __arg_0: &BidiInfo) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &BidiInfo) -> bool
This method tests for !=
.