pub trait FragmentBorderBoxIterator {
    // Required methods
    fn process(&mut self, fragment: &Fragment, level: i32, overflow: &Rect<Au>);
    fn should_process(&mut self, fragment: &Fragment) -> bool;
}
Expand description

A top-down fragment border box iteration handler.

Required Methods§

source

fn process(&mut self, fragment: &Fragment, level: i32, overflow: &Rect<Au>)

The operation to perform.

source

fn should_process(&mut self, fragment: &Fragment) -> bool

Returns true if this fragment must be processed in-order. If this returns false, we skip the operation for this fragment, but continue processing siblings.

Implementors§