Trait Measurement

Source
pub trait Measurement<Attribute> {
    // Required method
    fn measure<R>(&self, records: R, cfg: &SpannedConfig) -> usize
       where R: Records + ExactRecords + PeekableRecords,
             <R::Iter as IntoRecords>::Cell: AsRef<str>;
}
Expand description

A width value which can be obtained on behalf of Table.

Required Methods§

Source

fn measure<R>(&self, records: R, cfg: &SpannedConfig) -> usize

Returns a measurement value.

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.

Implementations on Foreign Types§

Source§

impl<T> Measurement<T> for usize

Source§

fn measure<R>(&self, _: R, _: &SpannedConfig) -> usize

Implementors§