Skip to main content

bytes_from_hex_string

Function bytes_from_hex_string 

Source
pub fn bytes_from_hex_string(s: &str) -> Bytes
Expand description

Decode a hex string into bytes. Mirrors graph-ts Bytes.fromHexString(). Accepts with or without 0x/0X prefix. Panics on invalid hex input — matches graph-ts strict behavior.