pub enum RenderPrepTrace {
Event,
Run {
style: Box<ComputedTextStyle>,
font: Box<FontResolutionTrace>,
},
}Expand description
Structured trace context for a streamed chapter item.
Variants§
Event
Non-text structural event.
Run
Text run with style context and font-resolution trace.
Fields
§
style: Box<ComputedTextStyle>Style used for this run during resolution.
§
font: Box<FontResolutionTrace>Font resolution details for this run.
Implementations§
Source§impl RenderPrepTrace
impl RenderPrepTrace
Sourcepub fn font_trace(&self) -> Option<&FontResolutionTrace>
pub fn font_trace(&self) -> Option<&FontResolutionTrace>
Return font-resolution trace when this item is a text run.
Sourcepub fn style_context(&self) -> Option<&ComputedTextStyle>
pub fn style_context(&self) -> Option<&ComputedTextStyle>
Return style context when this item is a text run.
Trait Implementations§
Source§impl Clone for RenderPrepTrace
impl Clone for RenderPrepTrace
Source§fn clone(&self) -> RenderPrepTrace
fn clone(&self) -> RenderPrepTrace
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 RenderPrepTrace
impl Debug for RenderPrepTrace
Source§impl PartialEq for RenderPrepTrace
impl PartialEq for RenderPrepTrace
impl StructuralPartialEq for RenderPrepTrace
Auto Trait Implementations§
impl Freeze for RenderPrepTrace
impl RefUnwindSafe for RenderPrepTrace
impl Send for RenderPrepTrace
impl Sync for RenderPrepTrace
impl Unpin for RenderPrepTrace
impl UnsafeUnpin for RenderPrepTrace
impl UnwindSafe for RenderPrepTrace
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