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§

source

fn is_replaced_content(&self) -> bool

Returns true if this node doesn’t render its kids and false otherwise.

source

fn construction_result_mut( self, layout_data: &mut InnerLayoutData, ) -> &mut ConstructionResult

source

fn set_flow_construction_result(self, result: ConstructionResult)

Sets the construction result of a flow.

source

fn get_construction_result(self) -> ConstructionResult

Returns the construction result for this node.

Implementors§

source§

impl<'dom, ConcreteThreadSafeLayoutNode> NodeUtils for ConcreteThreadSafeLayoutNode
where ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode<'dom>,