Trait layout_2013::flow::ImmutableFlowUtils
source · pub trait ImmutableFlowUtils {
Show 14 methods
// Required methods
fn is_block_like(self) -> bool;
fn is_table(self) -> bool;
fn is_table_caption(self) -> bool;
fn is_table_row(self) -> bool;
fn is_table_cell(self) -> bool;
fn is_table_colgroup(self) -> bool;
fn is_table_rowgroup(self) -> bool;
fn child_count(self) -> usize;
fn is_block_flow(self) -> bool;
fn is_inline_flow(self) -> bool;
fn print(self, title: String);
fn print_with_tree(self, print_tree: &mut PrintTree);
fn floats_might_flow_through(self) -> bool;
fn baseline_offset_of_last_line_box_in_flow(self) -> Option<Au>;
}
Required Methods§
sourcefn is_block_like(self) -> bool
fn is_block_like(self) -> bool
Returns true if this flow is a block flow or subclass thereof.
Returns true if this flow is a table caption flow.
sourcefn is_table_row(self) -> bool
fn is_table_row(self) -> bool
Returns true if this flow is a table row flow.
sourcefn is_table_cell(self) -> bool
fn is_table_cell(self) -> bool
Returns true if this flow is a table cell flow.
sourcefn is_table_colgroup(self) -> bool
fn is_table_colgroup(self) -> bool
Returns true if this flow is a table colgroup flow.
sourcefn is_table_rowgroup(self) -> bool
fn is_table_rowgroup(self) -> bool
Returns true if this flow is a table rowgroup flow.
sourcefn child_count(self) -> usize
fn child_count(self) -> usize
Returns the number of children that this flow possesses.
sourcefn is_block_flow(self) -> bool
fn is_block_flow(self) -> bool
Returns true if this flow is a block flow.
sourcefn is_inline_flow(self) -> bool
fn is_inline_flow(self) -> bool
Returns true if this flow is an inline flow.
sourcefn print_with_tree(self, print_tree: &mut PrintTree)
fn print_with_tree(self, print_tree: &mut PrintTree)
Dumps the flow tree for debugging into the given PrintTree.
sourcefn floats_might_flow_through(self) -> bool
fn floats_might_flow_through(self) -> bool
Returns true if floats might flow through this flow, as determined by the float placement speculation pass.