pub struct CachedWidget<W, K = NoCacheKey> { /* private fields */ }Expand description
Cached widget wrapper.
Use with CachedWidgetState via the StatefulWidget trait.
Implementations§
Source§impl<W> CachedWidget<W, NoCacheKey>
impl<W> CachedWidget<W, NoCacheKey>
Source§impl<W: Hash> CachedWidget<W, HashKey>
impl<W: Hash> CachedWidget<W, HashKey>
Source§impl<W, K> CachedWidget<W, K>
impl<W, K> CachedWidget<W, K>
Sourcepub fn into_inner(self) -> W
pub fn into_inner(self) -> W
Consume the wrapper and return the inner widget.
Sourcepub fn mark_dirty(&self, state: &mut CachedWidgetState)
pub fn mark_dirty(&self, state: &mut CachedWidgetState)
Mark the cache as dirty (forces a re-render on next draw).
Trait Implementations§
Source§impl<W: Widget, K: CacheKey<W>> StatefulWidget for CachedWidget<W, K>
impl<W: Widget, K: CacheKey<W>> StatefulWidget for CachedWidget<W, K>
Auto Trait Implementations§
impl<W, K> Freeze for CachedWidget<W, K>
impl<W, K> RefUnwindSafe for CachedWidget<W, K>where
W: RefUnwindSafe,
K: RefUnwindSafe,
impl<W, K> Send for CachedWidget<W, K>
impl<W, K> Sync for CachedWidget<W, K>
impl<W, K> Unpin for CachedWidget<W, K>
impl<W, K> UnsafeUnpin for CachedWidget<W, K>where
W: UnsafeUnpin,
K: UnsafeUnpin,
impl<W, K> UnwindSafe for CachedWidget<W, K>where
W: UnwindSafe,
K: UnwindSafe,
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