pub struct TextRun {
pub font: FontInstance,
pub glyphs: Vec<GlyphInstance>,
pub shadow: bool,
pub requested_raster_space: RasterSpace,
pub reference_frame_offset: LayoutVector2D,
}Fields§
§font: FontInstance§glyphs: Vec<GlyphInstance>§shadow: bool§requested_raster_space: RasterSpace§reference_frame_offset: LayoutVector2DTrait Implementations§
Source§impl CreateShadow for TextRun
impl CreateShadow for TextRun
fn create_shadow( &self, shadow: &Shadow, blur_is_noop: bool, current_raster_space: RasterSpace, ) -> Self
Source§impl Internable for TextRun
impl Internable for TextRun
const PROFILE_COUNTER: usize = 87usize
type Key = TextRunKey
type StoreData = TextRunTemplate
type InternData = ()
Source§impl InternablePrimitive for TextRun
impl InternablePrimitive for TextRun
Source§fn into_key(self, info: &LayoutPrimitiveInfo) -> TextRunKey
fn into_key(self, info: &LayoutPrimitiveInfo) -> TextRunKey
Build a new key from self with
info.fn make_instance_kind( key: TextRunKey, data_handle: Handle<TextRun>, prim_store: &mut PrimitiveStore, ) -> PrimitiveInstanceKind
Source§impl MallocSizeOf for TextRun
impl MallocSizeOf for TextRun
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Auto Trait Implementations§
impl Freeze for TextRun
impl RefUnwindSafe for TextRun
impl Send for TextRun
impl Sync for TextRun
impl Unpin for TextRun
impl UnwindSafe for TextRun
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> 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