Function |to_byte

conv/char::|to_byte


Usage

|to_byte(value)

Parameters

↳ value: char

Return

Vec<byte>


Turns char into Vec<byte>.

ℹ️ The Vec<byte> obtained from a char is the UTF-8 representation of it, the vector length is always 1 ≤ len ≤ 4.