pub trait Sizer {
// Required method
fn size(&self, text: &str) -> Result<usize>;
}Expand description
An interface for counting the size of a code chunk.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".