Function pango::unichar_direction[][src]

pub fn unichar_direction(ch: char) -> Direction
Expand description

Determines the inherent direction of a character; either Direction::Ltr, Direction::Rtl, or Direction::Neutral.

This function is useful to categorize characters into left-to-right letters, right-to-left letters, and everything else. If full Unicode bidirectional type of a character is needed, BidiType::for_unichar() can be used instead.


a Unicode character


the direction of the character.