Function |saturating_to_u64

std/conv::|saturating_to_u64


Usage

|saturating_to_u64(value)

Generics

◻ T: SaturatingToU64

Parameters

↳ value: T

Return

u64


Turns data into u64, saturating if needed.

This function makes a saturating and infaillible conversion to u64. If incoming data represents something out of bounds for u64, then the resulting value is set to minimum or maximum, depending what is the closest to truth.