pub trait ParentDataModifierNode:
Any
+ Send
+ Sync
+ 'static {
// Required method
fn apply_parent_data(&self, data: &mut ParentDataMap);
// Provided method
fn equivalent(&self, _other: &dyn ParentDataModifierNode) -> bool { ... }
}Expand description
A node-local parent-data modifier.
Required Methods§
Sourcefn apply_parent_data(&self, data: &mut ParentDataMap)
fn apply_parent_data(&self, data: &mut ParentDataMap)
Applies parent data visible to the parent layout.
Provided Methods§
Sourcefn equivalent(&self, _other: &dyn ParentDataModifierNode) -> bool
fn equivalent(&self, _other: &dyn ParentDataModifierNode) -> bool
Returns whether this node supplies the same layout inputs as another.
The default conservatively invalidates the parent layout when the node is replaced. Override this for value-based parent data such as weights.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".