Function |try_to_i32

std/conv::|try_to_i32


Usage

|try_to_i32<T>(value)

Generics

◻ T: TryToI32

Parameters

↳ value: T

Return

↴ Option<i32>


Try to turn data into i32.

This function returns an Option containing value if conversion is successful.