tabled::peaker

Trait Peaker

Source
pub trait Peaker {
    // Required methods
    fn create() -> Self;
    fn peak(&mut self, min_widths: &[usize], widths: &[usize]) -> Option<usize>;
}
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§