pub struct LayoutGlyphRun {
pub text: String,
pub direction: BidiDirection,
pub font_family: String,
pub font: FontMatch,
pub glyphs: Vec<GlyphInfo>,
pub width: f32,
pub style: ParsedSpanStyle,
pub transforms: Vec<ParsedSpanTransform>,
pub karaoke: Option<ParsedKaraokeSpan>,
pub drawing: Option<ParsedDrawing>,
}Fields§
§text: String§direction: BidiDirection§font_family: String§font: FontMatch§glyphs: Vec<GlyphInfo>§width: f32§style: ParsedSpanStyle§transforms: Vec<ParsedSpanTransform>§karaoke: Option<ParsedKaraokeSpan>§drawing: Option<ParsedDrawing>Trait Implementations§
Source§impl Clone for LayoutGlyphRun
impl Clone for LayoutGlyphRun
Source§fn clone(&self) -> LayoutGlyphRun
fn clone(&self) -> LayoutGlyphRun
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LayoutGlyphRun
impl Debug for LayoutGlyphRun
Source§impl Default for LayoutGlyphRun
impl Default for LayoutGlyphRun
Source§fn default() -> LayoutGlyphRun
fn default() -> LayoutGlyphRun
Returns the “default value” for a type. Read more
Source§impl PartialEq for LayoutGlyphRun
impl PartialEq for LayoutGlyphRun
Source§fn eq(&self, other: &LayoutGlyphRun) -> bool
fn eq(&self, other: &LayoutGlyphRun) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LayoutGlyphRun
Auto Trait Implementations§
impl Freeze for LayoutGlyphRun
impl RefUnwindSafe for LayoutGlyphRun
impl Send for LayoutGlyphRun
impl Sync for LayoutGlyphRun
impl Unpin for LayoutGlyphRun
impl UnsafeUnpin for LayoutGlyphRun
impl UnwindSafe for LayoutGlyphRun
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