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

The BidiClass of the character at each byte in the text.

The directional embedding level of each byte in the text.

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 Debug for BidiInfo
[src]

Formats the value using the given formatter.

impl PartialEq for BidiInfo
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.