Struct getopts::Opt
pub struct Opt { name: Name, hasarg: HasArg, occur: Occur, // some fields omitted }
A description of a possible option.
Fields
name | Name of the option |
hasarg | Whether it has an argument |
occur | How often it can occur |
pub struct Opt { name: Name, hasarg: HasArg, occur: Occur, // some fields omitted }
A description of a possible option.
name | Name of the option |
hasarg | Whether it has an argument |
occur | How often it can occur |
impl Eq for Opt
impl Clone for Opt
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).