PlacementStrategy

Trait PlacementStrategy 

Source
pub trait PlacementStrategy {
    // Required method
    fn find_next_place(
        &mut self,
        start_pos: Option<Vector>,
        r: &Rectangle,
    ) -> Option<Vector>;
}
Expand description

Define a word placement strategy.

Required Methods§

Source

fn find_next_place( &mut self, start_pos: Option<Vector>, r: &Rectangle, ) -> Option<Vector>

Return the next place to try for the given rectangle, starting with start_pos.

Implementors§