logo
pub struct Man { /* private fields */ }
Expand description

A manpage writer

Implementations

Build a Man

Create a new manual page.

Override the default man page title, written in all caps

Override the default section this man page is placed in

Common values:

  • "1": User Commands
  • "2": System Calls
  • "3": C Library Functions
  • "4": Devices and Special Files
  • "5": File Formats and Conventions
  • "6": Games et. al.
  • "7": Miscellanea
  • "8": System Administration tools and Daemons

Override the default date for the last non-trivial change to this man page

Dates should be written in the form YYYY-MM-DD.

Override the default source your command

For those few man-pages pages in Sections 1 and 8, probably you just want to write GNU.

Override the default manual this page is a member of

Generate ROFF output

Render a full manual page into the writer.

If customization is needed, you can call the individual sections you want and mix them into your own ROFF content.

Render the title into the writer.

Render the NAME section into the writer.

Render the SYNOPSIS section into the writer.

Render the DESCRIPTION section into the writer.

Render the OPTIONS section into the writer.

Render the SUBCOMMANDS section into the writer.

Render the EXTRA section into the writer.

Render the VERSION section into the writer.

Render the AUTHORS section into the writer.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.