Struct rustfmt_nightly::Session[][src]

pub struct Session<'b, T: Write + 'b> {
    pub config: Config,
    pub out: Option<&'b mut T>,
    // some fields omitted
}

A session is a run of rustfmt across a single or multiple inputs.

Fields

Methods

impl<'b, T: Write + 'b> Session<'b, T>
[src]

The main entry point for Rustfmt. Formats the given input according to the given config. out is only necessary if required by the configuration.

Trait Implementations

impl<'b, T: Write + 'b> Drop for Session<'b, T>
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<'b, T> Send for Session<'b, T> where
    T: Send

impl<'b, T> !Sync for Session<'b, T>