Skip to main content

RustPretty

Trait RustPretty 

Source
pub trait RustPretty {
    // Required method
    fn pretty(&mut self) -> Result<()>;
}
Expand description

The trait to support Rust language formatting

Required Methods§

Source

fn pretty(&mut self) -> Result<()>

Invoke this fn to perform the formatting codes action

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl RustPretty for Vec<Contract>

Source§

fn pretty(&mut self) -> Result<()>

Implementors§