[−][src]Trait parse_arg::Arg
A type that can be parsed.
Usually &OsStr
or OsString
. It's used to automatically pick the right
method if ParseArg
trait.
Required methods
fn parse<T: ParseArg>(self) -> Result<T, <T as ParseArg>::Error>
Parses the argument from self
using appropriate method.
In case self
is OsString
or can be converted to it at no cost
ParseArg::parse_owned_arg()
is used. Otherwise ParseArg::parse_arg()
is used.
Implementations on Foreign Types
impl Arg for OsString
[src]
impl<'a> Arg for &'a OsStr
[src]
impl<'a, U: 'a + Arg + Copy> Arg for &'a U
[src]
impl Arg for String
[src]
Using this with std::env::args()
is not a good practice, but it may be
useful for testing.
impl<'a> Arg for &'a str
[src]
Using this with std::env::args()
is not a good practice, but it may be
useful for testing.