Struct webrender::prim_store::text_run::TextRunKey
source · pub struct TextRunKey {
pub common: PrimKeyCommonData,
pub font: FontInstance,
pub glyphs: PrimaryArc<Vec<GlyphInstance>>,
pub shadow: bool,
pub requested_raster_space: RasterSpace,
pub reference_frame_offset: VectorKey,
}
Expand description
A run of glyphs, with associated font information.
Fields§
§common: PrimKeyCommonData
§font: FontInstance
§glyphs: PrimaryArc<Vec<GlyphInstance>>
§shadow: bool
§requested_raster_space: RasterSpace
§reference_frame_offset: VectorKey
Implementations§
source§impl TextRunKey
impl TextRunKey
pub fn new(info: &LayoutPrimitiveInfo, text_run: TextRun) -> Self
Trait Implementations§
source§impl Clone for TextRunKey
impl Clone for TextRunKey
source§fn clone(&self) -> TextRunKey
fn clone(&self) -> TextRunKey
Returns a copy 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 moresource§impl Debug for TextRunKey
impl Debug for TextRunKey
source§impl From<TextRunKey> for TextRunTemplate
impl From<TextRunKey> for TextRunTemplate
source§fn from(item: TextRunKey) -> Self
fn from(item: TextRunKey) -> Self
Converts to this type from the input type.
source§impl Hash for TextRunKey
impl Hash for TextRunKey
source§impl InternDebug for TextRunKey
impl InternDebug for TextRunKey
fn on_interned(&self, _uid: ItemUid)
source§impl MallocSizeOf for TextRunKey
impl MallocSizeOf for TextRunKey
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.
source§impl PartialEq for TextRunKey
impl PartialEq for TextRunKey
source§impl Serialize for TextRunKey
impl Serialize for TextRunKey
impl Eq for TextRunKey
impl StructuralPartialEq for TextRunKey
Auto Trait Implementations§
impl Freeze for TextRunKey
impl RefUnwindSafe for TextRunKey
impl Send for TextRunKey
impl Sync for TextRunKey
impl Unpin for TextRunKey
impl UnwindSafe for TextRunKey
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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