Struct rustdoc::html::format::Method[][src]

pub struct Method<'a> {
    pub decl: &'a FnDecl,
    pub name_len: usize,
    pub indent: usize,
}

Wrapper struct for properly emitting a method declaration.

Fields

The declaration to emit.

The length of the function's "name", used to determine line-wrapping.

The number of spaces to indent each successive line with, if line-wrapping is necessary.

Trait Implementations

impl<'a> Display for Method<'a>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> !Send for Method<'a>

impl<'a> !Sync for Method<'a>