pub struct BidiEngine;Expand description
Bidirectional layout algorithm engine.
Implementations§
Source§impl BidiEngine
impl BidiEngine
pub fn new() -> Self
Sourcepub fn detect_base_level(text: &str) -> u8
pub fn detect_base_level(text: &str) -> u8
Detects paragraph base direction (0 = LTR, 1 = RTL). Rule P2/P3: The first character of type L, AL, or R determines base level.
Sourcepub fn resolve_runs(&self, text: &str) -> Vec<BidiRun>
pub fn resolve_runs(&self, text: &str) -> Vec<BidiRun>
Splits text into visual runs according to UAX #9 rules.
Trait Implementations§
Source§impl Clone for BidiEngine
impl Clone for BidiEngine
Source§impl Debug for BidiEngine
impl Debug for BidiEngine
Auto Trait Implementations§
impl Forget for BidiEngine
impl Freeze for BidiEngine
impl Move for BidiEngine
impl RefUnwindSafe for BidiEngine
impl Send for BidiEngine
impl Sync for BidiEngine
impl Unpin for BidiEngine
impl UnsafeUnpin for BidiEngine
impl UnwindSafe for BidiEngine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more