Home
last modified time | relevance | path

Searched refs:get_one (Results 1 – 25 of 48) sorted by relevance

12

/external/rust/crates/clap/examples/
Dgit.rs66 sub_matches.get_one::<String>("REMOTE").expect("required") in main()
71 .get_one::<String>("color") in main()
75 let mut base = sub_matches.get_one::<String>("base").map(|s| s.as_str()); in main()
76 let mut head = sub_matches.get_one::<String>("head").map(|s| s.as_str()); in main()
77 let mut path = sub_matches.get_one::<String>("path").map(|s| s.as_str()); in main()
94 sub_matches.get_one::<String>("REMOTE").expect("required") in main()
109 let stash = sub_matches.get_one::<String>("STASH"); in main()
113 let stash = sub_matches.get_one::<String>("STASH"); in main()
117 let message = sub_matches.get_one::<String>("message"); in main()
/external/rust/crates/clap/3.2.23/examples/
Dgit.rs52 sub_matches.get_one::<String>("REMOTE").expect("required") in main()
58 sub_matches.get_one::<String>("REMOTE").expect("required") in main()
73 let stash = sub_matches.get_one::<String>("STASH"); in main()
77 let stash = sub_matches.get_one::<String>("STASH"); in main()
81 let message = sub_matches.get_one::<String>("message"); in main()
/external/rust/crates/clap/3.2.23/examples/tutorial_builder/
D01_quick.rs30 if let Some(name) = matches.get_one::<String>("name") { in main()
34 if let Some(config_path) = matches.get_one::<PathBuf>("config") { in main()
41 .get_one::<u8>("debug") in main()
54 if *matches.get_one::<bool>("list").expect("defaulted by clap") { in main()
D04_03_relations.rs48 let version = if let Some(ver) = matches.get_one::<String>("set-ver") { in main()
71 .get_one::<PathBuf>("INPUT_FILE") in main()
72 .unwrap_or_else(|| matches.get_one::<PathBuf>("spec-in").unwrap()) in main()
77 matches.get_one::<PathBuf>("config").unwrap().display() in main()
D04_04_custom.rs36 let version = if let Some(ver) = matches.get_one::<String>("set-ver") { in main()
72 .get_one::<PathBuf>("INPUT_FILE") in main()
73 .or_else(|| matches.get_one::<PathBuf>("spec-in")) in main()
85 matches.get_one::<PathBuf>("config").unwrap().display() in main()
D02_crate.rs12 matches.get_one::<String>("two").expect("required") in main()
16 matches.get_one::<String>("one").expect("required") in main()
D02_apps.rs14 matches.get_one::<String>("two").expect("required") in main()
18 matches.get_one::<String>("one").expect("required") in main()
D02_app_settings.rs13 matches.get_one::<String>("two").expect("required") in main()
17 matches.get_one::<String>("one").expect("required") in main()
D03_03_positional.rs8 println!("NAME: {:?}", matches.get_one::<String>("NAME")); in main()
D03_05_default_values.rs11 .get_one::<String>("NAME") in main()
D03_02_option.rs8 println!("name: {:?}", matches.get_one::<String>("name")); in main()
D04_01_possible.rs14 .get_one::<String>("MODE") in main()
/external/rust/crates/clap/examples/tutorial_builder/
D04_03_relations.rs46 let version = if let Some(ver) = matches.get_one::<String>("set-ver") { in main()
69 .get_one::<PathBuf>("INPUT_FILE") in main()
70 .unwrap_or_else(|| matches.get_one::<PathBuf>("spec-in").unwrap()) in main()
75 matches.get_one::<PathBuf>("config").unwrap().display() in main()
D04_04_custom.rs32 let version = if let Some(ver) = matches.get_one::<String>("set-ver") { in main()
68 .get_one::<PathBuf>("INPUT_FILE") in main()
69 .or_else(|| matches.get_one::<PathBuf>("spec-in")) in main()
81 matches.get_one::<PathBuf>("config").unwrap().display() in main()
D01_quick.rs27 if let Some(name) = matches.get_one::<String>("name") { in main()
31 if let Some(config_path) = matches.get_one::<PathBuf>("config") { in main()
38 .get_one::<u8>("debug") in main()
D02_crate.rs12 matches.get_one::<String>("two").expect("required") in main()
16 matches.get_one::<String>("one").expect("required") in main()
D02_apps.rs14 matches.get_one::<String>("two").expect("required") in main()
18 matches.get_one::<String>("one").expect("required") in main()
D02_app_settings.rs12 matches.get_one::<String>("two").expect("required") in main()
16 matches.get_one::<String>("one").expect("required") in main()
D03_03_positional.rs8 println!("name: {:?}", matches.get_one::<String>("name")); in main()
D03_02_option.rs8 println!("name: {:?}", matches.get_one::<String>("name")); in main()
D04_01_possible.rs14 .get_one::<String>("MODE") in main()
D03_02_option_mult.rs13 println!("name: {:?}", matches.get_one::<String>("name")); in main()
D03_05_default_values.rs15 .get_one::<u16>("PORT") in main()
/external/mesa3d/src/util/format/
Du_format_pack.py272 def get_one(type): function
382 src_one = get_one(src_channel)
383 dst_one = get_one(dst_channel)
401 one = get_one(src_channel)
425 dst_one = get_one(dst_channel)
509 value = get_one(dst_channel)
536 value = get_one(dst_channel)
/external/python/pybind11/tests/
Dtest_copy_move.py8 m.lacking_copy_ctor.get_one()
14 m.lacking_move_ctor.get_one()

12