pub struct TextItem<'a> {
pub range: Range<usize>,
pub level: BidiLevel,
pub paragraph_level: BidiLevel,
pub script: Script,
pub typeface: &'a Typeface,
pub span: usize,
}Expand description
A stretch of text that one typeface shapes in one direction and script, inside one style span.
Fields§
§range: Range<usize>The byte range in the text.
level: BidiLevelThe bidi embedding level.
paragraph_level: BidiLevelThe base level of the paragraph the item is in.
script: ScriptThe script.
typeface: &'a TypefaceThe typeface that draws it.
span: usizeThe index of the style span it lies in.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for TextItem<'a>
impl<'a> !UnwindSafe for TextItem<'a>
impl<'a> Forget for TextItem<'a>
impl<'a> Freeze for TextItem<'a>
impl<'a> Move for TextItem<'a>
impl<'a> Send for TextItem<'a>
impl<'a> Sync for TextItem<'a>
impl<'a> Unpin for TextItem<'a>
impl<'a> UnsafeUnpin for TextItem<'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