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
[src]
fn empty() -> Indent
[src]
fn block_only(&self) -> Indent
[src]
fn block_indent(self, config: &Config) -> Indent
[src]
fn block_unindent(self, config: &Config) -> Indent
[src]
fn width(&self) -> usize
[src]
fn to_string(&self, config: &Config) -> String
[src]
Trait Implementations
impl Copy for Indent
[src]
impl Clone for Indent
[src]
fn clone(&self) -> Indent
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Indent
[src]
impl Add for Indent
[src]
type Output = Indent
The resulting type after applying the +
operator.
fn add(self, rhs: Indent) -> Indent
[src]
Performs the +
operation.
impl Sub for Indent
[src]
type Output = Indent
The resulting type after applying the -
operator.
fn sub(self, rhs: Indent) -> Indent
[src]
Performs the -
operation.
impl Add<usize> for Indent
[src]
type Output = Indent
The resulting type after applying the +
operator.
fn add(self, rhs: usize) -> Indent
[src]
Performs the +
operation.