Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Function |try_to_byte

std/conv::|try_to_byte


Usage

|try_to_byte<T>(value)

Generics

◻ T: TryToByte

Parameters

↳ value: T

Return

Option<byte>


Try to turn data into byte.

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