pub struct Resolver { /* private fields */ }Expand description
Resolver for late bound resources.
Implementations§
Source§impl Resolver
impl Resolver
Sourcepub fn set_image_atlas_max(&mut self, max_size: u32)
pub fn set_image_atlas_max(&mut self, max_size: u32)
Limit the image atlas to max_size pixels per side; images that do
not fit after eviction are omitted and reported.
Sourcepub fn shrink_image_atlas_soon(&mut self)
pub fn shrink_image_atlas_soon(&mut self)
Images went for good: let a sparse atlas shrink within the next few resolves instead of after many.
Sourcepub fn image_cache_stats(&self) -> ImageCacheStats
pub fn image_cache_stats(&self) -> ImageCacheStats
What the image atlas cache holds now.
Sourcepub fn mark_image_dirty(&mut self, image: &ImageData)
pub fn mark_image_dirty(&mut self, image: &ImageData)
Marks the atlas entry for image as dirty.
If image is already resident in the atlas and appears in a later resolve pass,
that pass will include it in the returned image uploads.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Resolver
impl !UnwindSafe for Resolver
impl Forget for Resolver
impl Freeze for Resolverwhere
*const u8 is !null: Freeze,
PhantomData<Arc<Encoding>>: Freeze,
PhantomData<(GlyphKey, GlyphEntry)>: Freeze,
PhantomData<(SmallVec<[F2Dot14; 8]>, HashMap<GlyphKey, GlyphEntry>)>: Freeze,
PhantomData<HintEntry>: Freeze,
PhantomData<(CacheKey<ColorStops>, (u32, u64))>: Freeze,
PhantomData<u32>: Freeze,
PhantomData<Node>: Freeze,
PhantomData<AllocIndex>: Freeze,
PhantomData<Wrapping<u8>>: Freeze,
PhantomData<UnknownUnit>: Freeze,
PhantomData<(u64, ResidentImage)>: Freeze,
PhantomData<(ImageData, u32, u32)>: Freeze,
PhantomData<(ImageData, u32, u32, [u32; 4])>: Freeze,
PhantomData<PendingImage>: Freeze,
PhantomData<ResolvedPatch>: Freeze,
impl Move for Resolver
impl Send for Resolverwhere
RawVecInner: Send,
Arc<Encoding>: Send,
RawTable<(GlyphKey, GlyphEntry)>: Send,
RawTable<(SmallVec<[F2Dot14; 8]>, HashMap<GlyphKey, GlyphEntry>)>: Send,
BoxRaw<HintInstance>: Send,
Arc<GlyphStyleMap>: Send,
Arc<RwLock<Vec<Option<UnscaledStyleMetrics>>>>: Send,
RawTable<(CacheKey<ColorStops>, (u32, u64))>: Send,
RawTable<(u64, ResidentImage)>: Send,
Arc<dyn AsRef<[u8]> + Sync + Send>: Send,
impl Sync for Resolverwhere
RawVecInner: Sync,
Arc<Encoding>: Sync,
RawTable<(GlyphKey, GlyphEntry)>: Sync,
RawTable<(SmallVec<[F2Dot14; 8]>, HashMap<GlyphKey, GlyphEntry>)>: Sync,
BoxRaw<HintInstance>: Sync,
Arc<GlyphStyleMap>: Sync,
Arc<RwLock<Vec<Option<UnscaledStyleMetrics>>>>: Sync,
RawTable<(CacheKey<ColorStops>, (u32, u64))>: Sync,
RawTable<(u64, ResidentImage)>: Sync,
Arc<dyn AsRef<[u8]> + Sync + Send>: Sync,
impl Unpin for Resolver
impl UnsafeUnpin for Resolverwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Arc<Encoding>>: UnsafeUnpin,
PhantomData<(GlyphKey, GlyphEntry)>: UnsafeUnpin,
PhantomData<(SmallVec<[F2Dot14; 8]>, HashMap<GlyphKey, GlyphEntry>)>: UnsafeUnpin,
PhantomData<HintEntry>: UnsafeUnpin,
PhantomData<(CacheKey<ColorStops>, (u32, u64))>: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
PhantomData<Node>: UnsafeUnpin,
PhantomData<AllocIndex>: UnsafeUnpin,
PhantomData<Wrapping<u8>>: UnsafeUnpin,
PhantomData<UnknownUnit>: UnsafeUnpin,
PhantomData<(u64, ResidentImage)>: UnsafeUnpin,
PhantomData<(ImageData, u32, u32)>: UnsafeUnpin,
PhantomData<(ImageData, u32, u32, [u32; 4])>: UnsafeUnpin,
PhantomData<PendingImage>: UnsafeUnpin,
PhantomData<ResolvedPatch>: UnsafeUnpin,
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