Skip to main content

FormatRule

Trait FormatRule 

Source
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§

Source

fn fmt(&self, item: &T, buffer: &mut DocBuffer)

Push item’s document representation onto buffer.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§