Struct webrender::prim_store::text_run::TextRun
source · pub struct TextRun {
pub font: FontInstance,
pub glyphs: Arc<Vec<GlyphInstance>>,
pub shadow: bool,
pub requested_raster_space: RasterSpace,
pub reference_frame_offset: LayoutVector2D,
}
Fields§
§font: FontInstance
§glyphs: Arc<Vec<GlyphInstance>>
§shadow: bool
§requested_raster_space: RasterSpace
§reference_frame_offset: LayoutVector2D
Trait 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
type Key = TextRunKey
type StoreData = TextRunTemplate
type InternData = ()
const PROFILE_COUNTER: usize = 87usize
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