Struct rustfmt_nightly::Shape [] [src]

pub struct Shape {
    pub width: usize,
    pub indent: Indent,
    pub offset: usize,
}

Fields

Methods

impl Shape
[src]

indent is the indentation of the first line. The next lines should begin with at least indent spaces (except backwards indentation). The first line should not begin with indentation. width is the maximum number of characters on the last line (excluding indent). The width of other lines is not limited by width. Note that in reality, we sometimes use width for lines other than the last (i.e., we are conservative).

Trait Implementations

impl Copy for Shape
[src]

impl Clone for Shape
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Shape
[src]

Formats the value using the given formatter.