Sequence FromByte

std/conversion/scalar/bool::FromByte


Inputs

data: Stream<Vec<byte>>

Outputs

↦ value: Stream<bool>
↦ reject: Stream<Vec<byte>>


Convert stream of Vec<byte> into bool.

Each received byte vector try to be converted into bool, and if valid is sent as value. If the incoming vector is not valid for representing a bool (i.e. not right size or invalid coding) it is refused and sent through reject.