pub struct InheritedChanges { /* private fields */ }Expand description
Tracks which inherited properties actually changed.
This enables the “independent inheritance” optimization: when only specific inherited props change, we can propagate just those values without full style resolution.
Implementations§
Source§impl InheritedChanges
impl InheritedChanges
Sourcepub fn with_groups(groups: InheritedGroups) -> Self
pub fn with_groups(groups: InheritedGroups) -> Self
Create with specific changed groups.
Sourcepub fn has_changes(&self) -> bool
pub fn has_changes(&self) -> bool
Check if any inherited properties changed.
Sourcepub fn font_changed(&self) -> bool
pub fn font_changed(&self) -> bool
Check if font properties changed.
Sourcepub fn text_changed(&self) -> bool
pub fn text_changed(&self) -> bool
Check if text properties changed.
Trait Implementations§
Source§impl Clone for InheritedChanges
impl Clone for InheritedChanges
Source§fn clone(&self) -> InheritedChanges
fn clone(&self) -> InheritedChanges
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 InheritedChanges
impl Debug for InheritedChanges
Source§impl Default for InheritedChanges
impl Default for InheritedChanges
Source§fn default() -> InheritedChanges
fn default() -> InheritedChanges
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InheritedChanges
impl RefUnwindSafe for InheritedChanges
impl Send for InheritedChanges
impl Sync for InheritedChanges
impl Unpin for InheritedChanges
impl UnwindSafe for InheritedChanges
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<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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more