pub struct BidiRun {
pub start: usize,
pub end: usize,
pub level: u8,
}Expand description
A run of text with a uniform bidi embedding level.
Bidi runs are produced by BidiParagraph::new and represent contiguous
slices of the source string that share the same embedding level. Even-
numbered levels are LTR; odd-numbered levels are RTL.
Fields§
§start: usizeByte-offset start of this run in the source string (inclusive).
end: usizeByte-offset end of this run in the source string (exclusive).
level: u8UAX #9 embedding level. Level 0 = LTR paragraph base, 1 = RTL, etc.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BidiRun
impl RefUnwindSafe for BidiRun
impl Send for BidiRun
impl Sync for BidiRun
impl Unpin for BidiRun
impl UnsafeUnpin for BidiRun
impl UnwindSafe for BidiRun
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more