Skip to main content

Format

Trait Format 

Source
pub trait Format {
    // Required method
    fn fmt(&self, buffer: &mut DocBuffer);
}
Expand description

A value that knows how to render itself into a DocBuffer.

Required Methods§

Source

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

Push this value’s document representation onto buffer, in source order.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T: Format + ?Sized> Format for &T

Source§

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

Implementors§