pub struct ViewCacheProps {
pub layout: LayoutStyle,
pub contained_layout: bool,
pub cache_key: u64,
}Expand description
Experimental cache boundary wrapper for declarative element subtrees.
This is a mechanism-only primitive intended to support GPUI-style view caching experiments without committing to a stable authoring API.
Fields§
§layout: LayoutStyle§contained_layout: boolWhether the subtree should be treated as layout-contained by the runtime when view caching is enabled.
cache_key: u64Explicit cache key for view-cache reuse (experimental).
The runtime will reuse cached output for this view-cache root only when the computed key is
unchanged. This mirrors GPUI’s ViewCacheKey gating behavior.
Trait Implementations§
Source§impl Clone for ViewCacheProps
impl Clone for ViewCacheProps
Source§fn clone(&self) -> ViewCacheProps
fn clone(&self) -> ViewCacheProps
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 Debug for ViewCacheProps
impl Debug for ViewCacheProps
Source§impl Default for ViewCacheProps
impl Default for ViewCacheProps
Source§fn default() -> ViewCacheProps
fn default() -> ViewCacheProps
Returns the “default value” for a type. Read more
impl Copy for ViewCacheProps
Auto Trait Implementations§
impl Freeze for ViewCacheProps
impl RefUnwindSafe for ViewCacheProps
impl Send for ViewCacheProps
impl Sync for ViewCacheProps
impl Unpin for ViewCacheProps
impl UnsafeUnpin for ViewCacheProps
impl UnwindSafe for ViewCacheProps
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