Lines Matching defs:new
20 /// let cfg = Arg::new("config")
24 /// PossibleValue::new("fast"),
25 /// PossibleValue::new("slow").help("slower than fast"),
26 /// PossibleValue::new("secret speed").hide(true)
54 /// PossibleValue::new("fast")
60 pub fn new(name: impl Into<Str>) -> Self {
76 /// PossibleValue::new("slow")
96 /// PossibleValue::new("secret")
114 /// PossibleValue::new("slow")
134 /// PossibleValue::new("slow")
212 /// let arg_value = PossibleValue::new("fast").alias("not-slow");
232 Self::new(s)