Function |saturating_to_i64

std/conv::|saturating_to_i64


Usage

|saturating_to_i64<T>(value)

Generics

◻ T: SaturatingToI64

Parameters

↳ value: T

Return

↴ i64


Turns data into i64, saturating if needed.

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