pub struct RendererFontEnvironmentSnapshot {
pub revision: u64,
pub text_font_stack_key: Option<u64>,
pub sources: Vec<RendererFontSourceRecord>,
}Expand description
Best-effort snapshot of font sources currently known to the runner-owned renderer environment.
This is intentionally source-oriented rather than family-oriented:
FontCatalogMetadataremains the best-effort family picker surface,TextFontStackKeyremains the cross-surface invalidation key,- and this snapshot records where the renderer’s currently approved font bytes came from.
revision is monotonic and should advance whenever the effective renderer text environment
changes in a way that can affect downstream consumers such as future SVG-text bridges.
Fields§
§revision: u64§text_font_stack_key: Option<u64>§sources: Vec<RendererFontSourceRecord>Implementations§
Source§impl RendererFontEnvironmentSnapshot
impl RendererFontEnvironmentSnapshot
pub fn note_text_font_stack_key(&mut self, text_font_stack_key: u64) -> bool
pub fn extend_sources_unique( &mut self, sources: impl IntoIterator<Item = RendererFontSourceRecord>, ) -> bool
Trait Implementations§
Source§impl Clone for RendererFontEnvironmentSnapshot
impl Clone for RendererFontEnvironmentSnapshot
Source§fn clone(&self) -> RendererFontEnvironmentSnapshot
fn clone(&self) -> RendererFontEnvironmentSnapshot
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 Default for RendererFontEnvironmentSnapshot
impl Default for RendererFontEnvironmentSnapshot
Source§fn default() -> RendererFontEnvironmentSnapshot
fn default() -> RendererFontEnvironmentSnapshot
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RendererFontEnvironmentSnapshot
impl<'de> Deserialize<'de> for RendererFontEnvironmentSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RendererFontEnvironmentSnapshot
impl PartialEq for RendererFontEnvironmentSnapshot
Source§fn eq(&self, other: &RendererFontEnvironmentSnapshot) -> bool
fn eq(&self, other: &RendererFontEnvironmentSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RendererFontEnvironmentSnapshot
impl StructuralPartialEq for RendererFontEnvironmentSnapshot
Auto Trait Implementations§
impl Freeze for RendererFontEnvironmentSnapshot
impl RefUnwindSafe for RendererFontEnvironmentSnapshot
impl Send for RendererFontEnvironmentSnapshot
impl Sync for RendererFontEnvironmentSnapshot
impl Unpin for RendererFontEnvironmentSnapshot
impl UnsafeUnpin for RendererFontEnvironmentSnapshot
impl UnwindSafe for RendererFontEnvironmentSnapshot
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