Home
last modified time | relevance | path

Searched refs:HexOpt (Results 1 – 2 of 2) sorted by relevance

/third_party/rust/crates/clap/tests/derive/
Dcustom_string_parsers.rs65 struct HexOpt { struct
74 HexOpt { number: 5 }, in test_parse_hex() argument
75 HexOpt::try_parse_from(["test", "-n", "5"]).unwrap() in test_parse_hex()
78 HexOpt { in test_parse_hex()
81 HexOpt::try_parse_from(["test", "-n", "abcdef"]).unwrap() in test_parse_hex()
84 let err = HexOpt::try_parse_from(["test", "-n", "gg"]).unwrap_err(); in test_parse_hex()
Dnon_literal_attributes.rs133 struct HexOpt { struct
142 HexOpt { number: 5 }, in test_parse_hex_function_path() argument
143 HexOpt::try_parse_from(["test", "-n", "5"]).unwrap() in test_parse_hex_function_path()
146 HexOpt { in test_parse_hex_function_path()
149 HexOpt::try_parse_from(["test", "-n", "abcdef"]).unwrap() in test_parse_hex_function_path()
152 let err = HexOpt::try_parse_from(["test", "-n", "gg"]).unwrap_err(); in test_parse_hex_function_path()