Lines Matching defs:u64
1423 /// .value_parser(clap::value_parser!(u64).range(3000..))
1429 /// let port: u64 = *m.get_one("port")
1450 pub struct RangedU64ValueParser<T: std::convert::TryFrom<u64> = u64> {
1451 bounds: (std::ops::Bound<u64>, std::ops::Bound<u64>),
1455 impl<T: std::convert::TryFrom<u64>> RangedU64ValueParser<T> {
1456 /// Select full range of `u64`
1462 pub fn range<B: RangeBounds<u64>>(mut self, range: B) -> Self {
1516 std::ops::Bound::Unbounded => u64::MIN.to_string(),
1528 result.push_str(&u64::MAX.to_string());
1535 impl<T: std::convert::TryFrom<u64> + Clone + Send + Sync + 'static> TypedValueParser
1538 <T as std::convert::TryFrom<u64>>::Error: Send + Sync + 'static + std::error::Error + ToString,
1554 let value = ok!(value.parse::<u64>().map_err(|err| {
1594 impl<T: std::convert::TryFrom<u64>, B: RangeBounds<u64>> From<B> for RangedU64ValueParser<T> {
1603 impl<T: std::convert::TryFrom<u64>> Default for RangedU64ValueParser<T> {
2178 impl ValueParserFactory for u64 {
2179 type Parser = RangedU64ValueParser<u64>;
2319 /// - [Ranged numeric types][RangedI64ValueParser]: `u8`, `i8`, `u16`, `i16`, `u32`, `i32`, `u64`, `i64`
2355 /// clap::value_parser!(u64).range(3000..);