pub struct TextLayoutResult { /* private fields */ }Expand description
The layout of a text: Compose’s TextLayoutResult. Its queries are the
layout’s, in logical pixels from the text’s top left corner, with byte
offsets into the text.
Implementations§
Source§impl TextLayoutResult
impl TextLayoutResult
Sourcepub fn new(layout: TextLayout) -> Self
pub fn new(layout: TextLayout) -> Self
The result of layout.
Sourcepub fn layout(&self) -> &TextLayout
pub fn layout(&self) -> &TextLayout
The lines and glyphs, and every query on them.
Trait Implementations§
Source§impl Clone for TextLayoutResult
impl Clone for TextLayoutResult
Auto Trait Implementations§
impl !RefUnwindSafe for TextLayoutResult
impl !UnwindSafe for TextLayoutResult
impl Forget for TextLayoutResult
impl Freeze for TextLayoutResult
impl Move for TextLayoutResult
impl Send for TextLayoutResult
impl Sync for TextLayoutResult
impl Unpin for TextLayoutResult
impl UnsafeUnpin for TextLayoutResult
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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