pub struct ResolvedFontRun {
pub text: String,
pub start_byte: usize,
pub end_byte: usize,
pub font_id: Option<FontId>,
pub css_source: String,
}Expand description
A run of text that uses the same font Returned by FontFallbackChain::query_for_text()
Fields§
§text: StringThe text content of this run
start_byte: usizeStart byte index in the original text
end_byte: usizeEnd byte index in the original text (exclusive)
font_id: Option<FontId>The font to use for this run (None if no font found)
css_source: StringWhich CSS font-family this came from
Trait Implementations§
Source§impl Clone for ResolvedFontRun
impl Clone for ResolvedFontRun
Source§fn clone(&self) -> ResolvedFontRun
fn clone(&self) -> ResolvedFontRun
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 moreSource§impl Debug for ResolvedFontRun
impl Debug for ResolvedFontRun
Source§impl PartialEq for ResolvedFontRun
impl PartialEq for ResolvedFontRun
impl Eq for ResolvedFontRun
impl StructuralPartialEq for ResolvedFontRun
Auto Trait Implementations§
impl Freeze for ResolvedFontRun
impl RefUnwindSafe for ResolvedFontRun
impl Send for ResolvedFontRun
impl Sync for ResolvedFontRun
impl Unpin for ResolvedFontRun
impl UnsafeUnpin for ResolvedFontRun
impl UnwindSafe for ResolvedFontRun
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