Lines Matching refs:Opt
20 struct Opt {
25 Opt { arg: 24 },
26 Opt::try_parse_from(["test", "-a24"]).unwrap()
33 struct Opt {
40 let mut opt = Opt::try_parse_from(["test", "-f0", "-s1"]).unwrap();
45 Opt {
56 struct Opt {
63 let mut opt = Opt::try_parse_from(["test", "-f0", "-s1"]).unwrap();
68 Opt {
79 struct Opt;
81 assert_eq!(Opt {}, Opt::try_parse_from(["test"]).unwrap());