pub trait Peaker {
    // Required methods
    fn create() -> Self;
    fn peak(&mut self, min_widths: &[usize], widths: &[usize]) -> Option<usize>;
}
Available on crate feature std only.
Expand description

A strategy of width function. It determines the order how the function is applied.

Required Methods§

source

fn create() -> Self

Creates a new instance.

source

fn peak(&mut self, min_widths: &[usize], widths: &[usize]) -> Option<usize>

This function returns a column index which will be changed. Or None if no changes are necessary.

Object Safety§

This trait is not object safe.

Implementors§