[][src]Struct bird_tool_utils_man::Opt

pub struct Opt { /* fields omitted */ }

Arguments that take values.

Implementations

impl Opt[src]

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

Create a new instance.

pub fn default_value(self, default: &str) -> Self[src]

Set the default value.

pub fn help(self, help: &str) -> Self[src]

Set the help.

pub fn short(self, short: &str) -> Self[src]

Set the short value.

pub fn long(self, long: &str) -> Self[src]

Set the long value.

Trait Implementations

impl Clone for Opt[src]

impl Debug for Opt[src]

Auto Trait Implementations

impl RefUnwindSafe for Opt

impl Send for Opt

impl Sync for Opt

impl Unpin for Opt

impl UnwindSafe for Opt

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.