pub fn max_digest_interval(&self) -> u64 {
		if !self.is_digest_build_enabled() {
			return 1;
		}

		// FIXME: use saturating_pow once stabilized  - https://github.com/rust-lang/rust/issues/48320
		let mut max_digest_interval = self.digest_interval;
		for _ in 1..self.digest_levels {
			max_digest_interval = match max_digest_interval.checked_mul(self.digest_interval) {
				Some(max_digest_interval) => max_digest_interval,
				None => return u64::max_value(),
			}
		}

		max_digest_interval
	}
/// Returns max digest interval. One if digests are not created at all.
/// Returns ::std::u64::MAX instead of panic in the case of overflow.
Returns max digest interval. One if digests are not created at all.
Returns max digest interval . One if digests are not created at all .
pub fn max_digest_interval(&self) -> u64 {
		if !self.is_digest_build_enabled() {
			return 1;
		}
		// FIXME: use saturating_pow once stabilized  - https://github.com/rust-lang/rust/issues/48320
		let mut max_digest_interval = self.digest_interval;
		for _ in 1..self.digest_levels {
			max_digest_interval = match max_digest_interval.checked_mul(self.digest_interval) {
				Some(max_digest_interval) => max_digest_interval,
				None => return u64::max_value(),
			}
		}
		max_digest_interval
	}
pub fn max_digest_interval ( & self ) -> u64 { if ! self . is_digest_build_enabled ( ) { return 1 ; } // FIXME: use saturating_pow once stabilized  - https://github.com/rust-lang/rust/issues/48320 let mut max_digest_interval = self . digest_interval ; for _ in 1 .. self . digest_levels { max_digest_interval = match max_digest_interval . checked_mul ( self . digest_interval ) { Some ( max_digest_interval ) => max_digest_interval , None => return u64 :: max_value ( ) , } } max_digest_interval }
Returns max digest interval.
Returns max digest interval .
&self
&self