Lines Matching defs:from
181 /// OsString::from("myprog"),
286 fn from(p: P) -> Self {
292 fn from(p: _AnonymousValueParser) -> Self {
297 /// Create an `i64` [`ValueParser`] from a `N..M` range
321 fn from(value: std::ops::Range<i64>) -> Self {
323 Self::from(inner)
327 /// Create an `i64` [`ValueParser`] from a `N..=M` range
351 fn from(value: std::ops::RangeInclusive<i64>) -> Self {
353 Self::from(inner)
357 /// Create an `i64` [`ValueParser`] from a `N..` range
381 fn from(value: std::ops::RangeFrom<i64>) -> Self {
383 Self::from(inner)
387 /// Create an `i64` [`ValueParser`] from a `..M` range
411 fn from(value: std::ops::RangeTo<i64>) -> Self {
413 Self::from(inner)
417 /// Create an `i64` [`ValueParser`] from a `..=M` range
441 fn from(value: std::ops::RangeToInclusive<i64>) -> Self {
443 Self::from(inner)
447 /// Create an `i64` [`ValueParser`] from a `..` range
471 fn from(value: std::ops::RangeFull) -> Self {
473 Self::from(inner)
505 fn from(values: [P; C]) -> Self {
506 let inner = PossibleValuesParser::from(values);
507 Self::from(inner)
540 fn from(values: Vec<P>) -> Self {
541 let inner = PossibleValuesParser::from(values);
542 Self::from(inner)
721 /// Adapt a `TypedValueParser` from one value to another
765 /// Adapt a `TypedValueParser` from one value to another
789 /// let path = PathBuf::from(os);
976 Ok(Self::Value::from(value))
1101 /// Verify the value is from an enumerated set of [`PossibleValue`][crate::builder::PossibleValue].
1142 /// Verify the value is from an enumerated set pf [`PossibleValue`][crate::builder::PossibleValue].
1206 fn from(values: I) -> Self {
1260 Self::from(..)
1399 fn from(range: B) -> Self {
1458 Self::from(..)
1595 fn from(range: B) -> Self {
1941 /// Adapt a `TypedValueParser` from one value to another
2000 /// Adapt a `TypedValueParser` from one value to another
2247 .map(|s| FromOsString::from(s))
2265 .map(|s| FromOsStr::from(&s))
2280 _AnonymousValueParser(StringValueParser::new().map(|s| FromString::from(s)).into())
2293 _AnonymousValueParser(StringValueParser::new().map(|s| FromStr::from(&s)).into())
2314 /// Select a [`ValueParser`] implementation from the intended type