Trait layout_2013::construct::NodeUtils
source · trait NodeUtils {
// Required methods
fn is_replaced_content(&self) -> bool;
fn construction_result_mut(
self,
layout_data: &mut InnerLayoutData,
) -> &mut ConstructionResult;
fn set_flow_construction_result(self, result: ConstructionResult);
fn get_construction_result(self) -> ConstructionResult;
}
Expand description
A utility trait with some useful methods for node queries.
Required Methods§
sourcefn is_replaced_content(&self) -> bool
fn is_replaced_content(&self) -> bool
Returns true if this node doesn’t render its kids and false otherwise.
fn construction_result_mut( self, layout_data: &mut InnerLayoutData, ) -> &mut ConstructionResult
sourcefn set_flow_construction_result(self, result: ConstructionResult)
fn set_flow_construction_result(self, result: ConstructionResult)
Sets the construction result of a flow.
sourcefn get_construction_result(self) -> ConstructionResult
fn get_construction_result(self) -> ConstructionResult
Returns the construction result for this node.