pub struct StyleResolutionView { /* private fields */ }Expand description
A concrete IncrementalView that resolves styles by merging a base
(theme) style with per-widget overrides.
When the theme changes, only widgets whose resolved style actually differs are emitted as output deltas.
§Materialized View
Maps StyleKey (widget ID) → ResolvedStyleValue (hash of resolved
style). The resolved style is base_hash XOR override_hash — a
simplified model of the real merge(child, parent) operation.
Implementations§
Trait Implementations§
Source§impl IncrementalView<StyleKey, ResolvedStyleValue> for StyleResolutionView
impl IncrementalView<StyleKey, ResolvedStyleValue> for StyleResolutionView
Source§fn apply_delta(
&mut self,
batch: &DeltaBatch<StyleKey, ResolvedStyleValue>,
) -> DeltaBatch<StyleKey, ResolvedStyleValue>
fn apply_delta( &mut self, batch: &DeltaBatch<StyleKey, ResolvedStyleValue>, ) -> DeltaBatch<StyleKey, ResolvedStyleValue>
Apply a batch of input deltas and produce output deltas. Read more
Source§fn full_recompute(&self) -> Vec<(StyleKey, ResolvedStyleValue)>
fn full_recompute(&self) -> Vec<(StyleKey, ResolvedStyleValue)>
Fully recompute the materialized view from scratch. Read more
Source§fn materialized_size(&self) -> usize
fn materialized_size(&self) -> usize
Number of entries in the materialized view.
Source§fn domain(&self) -> ViewDomain
fn domain(&self) -> ViewDomain
Domain of this view (for logging and evidence).
Auto Trait Implementations§
impl Freeze for StyleResolutionView
impl RefUnwindSafe for StyleResolutionView
impl Send for StyleResolutionView
impl Sync for StyleResolutionView
impl Unpin for StyleResolutionView
impl UnsafeUnpin for StyleResolutionView
impl UnwindSafe for StyleResolutionView
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