Struct cosmic_text::LayoutRun
source · pub struct LayoutRun<'a> {
pub line_i: usize,
pub text: &'a str,
pub rtl: bool,
pub glyphs: &'a [LayoutGlyph],
pub line_y: i32,
}
Expand description
A line of visible text for rendering
Fields
line_i: usize
The index of the original text line
text: &'a str
The original text line
rtl: bool
True if the original paragraph direction is RTL
glyphs: &'a [LayoutGlyph]
The array of layout glyphs to draw
line_y: i32
Y offset of line
Auto Trait Implementations
impl<'a> RefUnwindSafe for LayoutRun<'a>
impl<'a> Send for LayoutRun<'a>
impl<'a> Sync for LayoutRun<'a>
impl<'a> Unpin for LayoutRun<'a>
impl<'a> UnwindSafe for LayoutRun<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more