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")))
}Вывод
4142
@intrinsic("ser.hex") pub(api) fn hex(b: &bytes) -> strС версии. 1.0.0-beta
Параметры
| Имя | Тип |
|---|---|
b | &bytes |
Возвращает
str
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/ser/ser.oxl:2351