pub struct ReconciliationResult {
pub intrinsic_dirty: BTreeSet<usize>,
pub layout_roots: BTreeSet<usize>,
pub paint_dirty: BTreeSet<usize>,
}Expand description
The result of a reconciliation pass.
Fields§
§intrinsic_dirty: BTreeSet<usize>Set of nodes whose intrinsic size needs to be recalculated (bottom-up pass).
layout_roots: BTreeSet<usize>Set of layout roots whose subtrees need a new top-down layout pass.
paint_dirty: BTreeSet<usize>Set of nodes that only need a paint/display-list update (no relayout).
Implementations§
Source§impl ReconciliationResult
impl ReconciliationResult
Sourcepub fn needs_layout(&self) -> bool
pub fn needs_layout(&self) -> bool
Returns true if full layout work is needed for at least one node.
Sourcepub fn needs_paint_only(&self) -> bool
pub fn needs_paint_only(&self) -> bool
Returns true if only paint work is needed (no layout).
Trait Implementations§
Source§impl Debug for ReconciliationResult
impl Debug for ReconciliationResult
Source§impl Default for ReconciliationResult
impl Default for ReconciliationResult
Source§fn default() -> ReconciliationResult
fn default() -> ReconciliationResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReconciliationResult
impl RefUnwindSafe for ReconciliationResult
impl Send for ReconciliationResult
impl Sync for ReconciliationResult
impl Unpin for ReconciliationResult
impl UnsafeUnpin for ReconciliationResult
impl UnwindSafe for ReconciliationResult
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> 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