fn hex
Lower-case hexadecimal text of the bytes ("0a 02 68 69" without spaces: 0a026869); a debugging and testing aid.
Example:
use std.ser { bytesOf, hex }
fn main() io {
print(hex(&bytesOf(&"AB")))
}Output
4142
@intrinsic("ser.hex") pub(api) fn hex(b: &bytes) -> strSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
b | &bytes |
Returns
str
Effects
none declared (pure unless the body says otherwise)
Defined in: std/ser/ser.oxl:2351