Struct rustfmt::Indent [] [src]

pub struct Indent {
    pub block_indent: usize,
    pub alignment: usize,
}

Fields

block_indent: usize alignment: usize

Methods

impl Indent
[src]

fn new(block_indent: usize, alignment: usize) -> Indent

fn empty() -> Indent

fn block_indent(self, config: &Config) -> Indent

fn block_unindent(self, config: &Config) -> Indent

fn width(&self) -> usize

fn to_string(&self, config: &Config) -> String

Trait Implementations

impl Debug for Indent
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Indent
[src]

fn clone(&self) -> Indent

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Indent
[src]

impl Add for Indent
[src]

type Output = Indent

The resulting type after applying the + operator

fn add(self, rhs: Indent) -> Indent

The method for the + operator

impl Sub for Indent
[src]

type Output = Indent

The resulting type after applying the - operator

fn sub(self, rhs: Indent) -> Indent

The method for the - operator

impl Add<usize> for Indent
[src]

type Output = Indent

The resulting type after applying the + operator

fn add(self, rhs: usize) -> Indent

The method for the + operator

impl Sub<usize> for Indent
[src]

type Output = Indent

The resulting type after applying the - operator

fn sub(self, rhs: usize) -> Indent

The method for the - operator