pub struct StyledPositionedTextRunRef<'a, 'b> {
pub x: f32,
pub y: f32,
pub text: &'a str,
pub glyph_runs: &'a [PretextGlyphRun],
pub emoji_overlays: &'a [EmojiOverlayRun],
pub options: EguiPretextPaintOptions<'b>,
}Expand description
A borrowed positioned text fragment with its own per-fragment paint options.
Fields§
§x: f32§y: f32§text: &'a str§glyph_runs: &'a [PretextGlyphRun]§emoji_overlays: &'a [EmojiOverlayRun]§options: EguiPretextPaintOptions<'b>Trait Implementations§
Source§impl<'a, 'b> Clone for StyledPositionedTextRunRef<'a, 'b>
impl<'a, 'b> Clone for StyledPositionedTextRunRef<'a, 'b>
Source§fn clone(&self) -> StyledPositionedTextRunRef<'a, 'b>
fn clone(&self) -> StyledPositionedTextRunRef<'a, 'b>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a, 'b> Freeze for StyledPositionedTextRunRef<'a, 'b>
impl<'a, 'b> RefUnwindSafe for StyledPositionedTextRunRef<'a, 'b>
impl<'a, 'b> Send for StyledPositionedTextRunRef<'a, 'b>
impl<'a, 'b> Sync for StyledPositionedTextRunRef<'a, 'b>
impl<'a, 'b> Unpin for StyledPositionedTextRunRef<'a, 'b>
impl<'a, 'b> UnsafeUnpin for StyledPositionedTextRunRef<'a, 'b>
impl<'a, 'b> UnwindSafe for StyledPositionedTextRunRef<'a, 'b>
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