pub struct BidiText<'a> { /* private fields */ }Implementations§
Source§impl<'a> BidiText<'a>
impl<'a> BidiText<'a>
pub fn resolve( text: &str, range: Range<usize>, base_direction: BaseDirection, output: &'a mut [BidiRun], ) -> Result<Self, BidiError>
pub const fn direction(&self) -> Direction
pub fn text(&self) -> Range<usize> ⓘ
pub const fn logical_runs(&self) -> &[BidiRun]
pub fn visual_runs_into<'b>( &self, output: &'b mut [BidiRun], ) -> Result<&'b [BidiRun], BidiError>
Auto Trait Implementations§
impl<'a> Forget for BidiText<'a>
impl<'a> Freeze for BidiText<'a>
impl<'a> RefUnwindSafe for BidiText<'a>
impl<'a> Send for BidiText<'a>
impl<'a> Sync for BidiText<'a>
impl<'a> Unpin for BidiText<'a>
impl<'a> UnsafeUnpin for BidiText<'a>
impl<'a> UnwindSafe for BidiText<'a>
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