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§
Sourcefn measure<R>(&self, records: R, cfg: &SpannedConfig) -> usize
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.