Treatment toBytes

std/conv::toBytes


Generics

◻ T (any)

Inputs

⇥ value: Stream<T>

Outputs

↦ data: Stream<Vec<byte>>


Turns data stream into Vec<byte> one.

Each data element gets converted into Vec<byte>, with each vector containing the binary form of data it represents.

ℹ️ While this conversion is infaillible, resulting vector may be empty. Content format and length of each vector is totally dependent on data type given, and might not be constant (like for char or string types).