pub trait FormatRule<T: ?Sized> {
// Required method
fn fmt(&self, item: &T, buffer: &mut DocBuffer);
}Expand description
Formatting logic for a T kept outside T, matching the biome/ruff rule pattern.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".