fedimint_
core
0.8.0-alpha
In fedimint_
core::
util
Modules
backoff_util
broadcaststream
error
update_merge
Structs
FmtCompactErrorAnyhow
FmtErrorCompact
SafeUrl
Spanned
Traits
FmtCompact
FmtCompactAnyhow
NextOrPending
Functions
get_average
get_median
handle_version_hash_command
retry
write_new
write_new_async
write_overwrite
write_overwrite_async
Type Aliases
BoxFuture
BoxStream
fedimint_core
::
util
Function
get_average
Copy item path
Settings
Help
Summary
Source
pub fn get_average(vals: &[
u64
]) ->
Option
<
u64
>
Expand description
Computes the average of the given
u64
slice.