[−][src]Struct man::Manual
The main man page struct.
Methods
impl Manual
[src]
impl Manual
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]
impl Clone for Manual
fn clone(&self) -> 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]
impl Debug for Manual
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,