pub struct BidiParagraph {
pub runs: Vec<BidiRun>,
pub para_level: u8,
}Expand description
A paragraph’s bidi structure in logical order.
bidi_runs returns runs already reordered for display, which suits
a single-line label that is shaped and painted in one go. The
multi-line editor cannot use that: line breaking is a logical
operation, so runs have to stay in logical order until the breaker has
decided where the lines fall, and only then get reordered per line.
Reordering the paragraph up front and breaking afterwards would
scramble any paragraph that wraps.
Fields§
§runs: Vec<BidiRun>Runs of uniform embedding level, in logical order.
para_level: u8The paragraph embedding level actually used — the explicit base direction when one was given, else the rule P2/P3 auto-detection.
Implementations§
Source§impl BidiParagraph
impl BidiParagraph
Sourcepub fn base_direction(&self) -> TextDirection
pub fn base_direction(&self) -> TextDirection
The paragraph’s base direction, as resolved.
Auto Trait Implementations§
impl Freeze for BidiParagraph
impl RefUnwindSafe for BidiParagraph
impl Send for BidiParagraph
impl Sync for BidiParagraph
impl Unpin for BidiParagraph
impl UnsafeUnpin for BidiParagraph
impl UnwindSafe for BidiParagraph
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