pub struct Cache { /* private fields */ }
Expand description
The cache for [tiny-skia
] resources.
This type contains some resources that can be shared between render contexts. This sharing reduces the number of allocations involved in the process of rendering.
Implementations§
Source§impl Cache
impl Cache
Sourcepub fn render_context<Target: AsPixmapMut>(
&mut self,
target: Target,
) -> RenderContext<'_, Target>
pub fn render_context<Target: AsPixmapMut>( &mut self, target: Target, ) -> RenderContext<'_, Target>
Gets a render context for the provided target pixmap.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cache
impl !RefUnwindSafe for Cache
impl !Send for Cache
impl !Sync for Cache
impl Unpin for Cache
impl !UnwindSafe for Cache
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.