Skip to main content

tryte_to_byte

Function tryte_to_byte 

Source
pub const fn tryte_to_byte(t: Tryte) -> Option<u8>
Expand description

Converts a tryte back to a byte.

None if the value is outside 0..=255, which has no byte representation. Callers writing to a byte-oriented device must treat this as an error rather than truncating.