[][src]Struct man::Manual

pub struct Manual { /* fields omitted */ }

The main man page struct.

Methods

impl Manual
[src]

pub fn new(name: &str) -> Self
[src]

Create a new instance.

pub fn about<S: Into<String>>(self, about: S) -> Self
[src]

Add a short description.

pub fn description<S: Into<String>>(self, description: S) -> Self
[src]

Add a long description.

pub fn author(self, author: Author) -> Self
[src]

Add an author.

pub fn env(self, env: Env) -> Self
[src]

Add an environment variable.

pub fn flag(self, flag: Flag) -> Self
[src]

Add an flag.

pub fn option(self, opt: Opt) -> Self
[src]

Add an option.

pub fn custom(self, custom_section: Section) -> Self
[src]

Add a custom section

pub fn example(self, example: Example) -> Self
[src]

Add an examples section

pub fn arg(self, arg: Arg) -> Self
[src]

Add a positional argument. The items are displayed in the order they're pushed.

pub fn render(self) -> String
[src]

Render to a string.

Trait Implementations

impl Clone for Manual
[src]

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

Performs copy-assignment from source. Read more

impl Debug for Manual
[src]

Auto Trait Implementations

impl Send for Manual

impl Sync for Manual

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.