BidiRun
Mojo struct 🡭
BidiRun
@memory_only
struct BidiRunOne maximal span of a line at a single embedding level. codepoints[start] through codepoints[start + length - 1] are the run’s characters in logical order; an odd level means the run draws right to left, so its glyphs reverse after they are shaped.
Fields
- start (
Int) - length (
Int) - level (
Int)
Implemented traits
AnyType, Copyable, Deinitable, ImplicitlyCopyable, Movable
Methods
__init__
fn def __init__(out self, start: Int, length: Int, level: Int)Args:
- start (
Int) - length (
Int) - level (
Int) - self (
Self)
Returns:
Self
is_rtl
fn def is_rtl(self) -> BoolWhether this run draws right to left.
Args:
- self (
Self)
Returns:
Bool: True for an odd embedding level.