MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / ParamDescription

Class ParamDescription

src/argparse.rs:31–36  ·  view source on GitHub ↗

Description of a python parameter; used for `parse_args()`.

Source from the content-addressed store, hash-verified

29
30/// Description of a python parameter; used for `parse_args()`.
31pub struct ParamDescription<'a> {
32 /// The name of the parameter.
33 pub name: &'a str,
34 /// Whether the parameter is optional.
35 pub is_optional: bool,
36}
37
38impl<'a> ParamDescription<'a> {
39 /// Name, with leading `r#` stripped.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected