Struct Visual Text Run
pub struct VisualTextRun {
pub range: Range<usize>,
pub direction: TextDirection,
pub level: u8,
}Expand description
Logical UTF8 byte range in visual run order. Feed each original slice to a shaper with this direction; do not reverse its characters before shaping. Levels are line-adjusted Unicode embedding levels, not font/script boundaries.
Fields§
§range: Range<usize>§direction: TextDirection§level: u8Trait Implementations§
§impl Clone for VisualTextRun
impl Clone for VisualTextRun
§fn clone(&self) -> VisualTextRun
fn clone(&self) -> VisualTextRun
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for VisualTextRun
impl Debug for VisualTextRun
impl Eq for VisualTextRun
§impl PartialEq for VisualTextRun
impl PartialEq for VisualTextRun
impl StructuralPartialEq for VisualTextRun
Auto Trait Implementations§
impl Freeze for VisualTextRun
impl RefUnwindSafe for VisualTextRun
impl Send for VisualTextRun
impl Sync for VisualTextRun
impl Unpin for VisualTextRun
impl UnsafeUnpin for VisualTextRun
impl UnwindSafe for VisualTextRun
Blanket Implementations§
§impl<T> BorrowMut<T> for T
impl<T> BorrowMut<T> for T
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more