Function |try_to_bool

std/conv::|try_to_bool


Usage

|try_to_bool<T>(value)

Generics

◻ T: TryToBool

Parameters

↳ value: T

Return

Option<bool>


Try to turn data into bool.

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