pub struct RenderCacheKey {
pub width: usize,
pub expanded: bool,
pub state_hash: u64,
}Expand description
Key for render caching — components return this to indicate when cache is valid. Two renders with the same cache key produce identical output.
Fields§
§width: usizeViewport width.
expanded: boolWhether expanded (for collapsible components).
state_hash: u64Additional state hash (tool name, args hash, etc.).
Trait Implementations§
Source§impl Clone for RenderCacheKey
impl Clone for RenderCacheKey
Source§fn clone(&self) -> RenderCacheKey
fn clone(&self) -> RenderCacheKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RenderCacheKey
impl Debug for RenderCacheKey
impl Eq for RenderCacheKey
Source§impl PartialEq for RenderCacheKey
impl PartialEq for RenderCacheKey
Source§fn eq(&self, other: &RenderCacheKey) -> bool
fn eq(&self, other: &RenderCacheKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RenderCacheKey
Auto Trait Implementations§
impl Freeze for RenderCacheKey
impl RefUnwindSafe for RenderCacheKey
impl Send for RenderCacheKey
impl Sync for RenderCacheKey
impl Unpin for RenderCacheKey
impl UnsafeUnpin for RenderCacheKey
impl UnwindSafe for RenderCacheKey
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.