Skip to main content

render_bytes_literal

Function render_bytes_literal 

Source
pub fn render_bytes_literal(data: &[u8], mode: BytesDisplay) -> String
Expand description

Render data as the full b"..." literal text under mode.

Forced ASCII/UTF-16LE modes are best-effort: bytes (or code units) that aren’t printable are escaped rather than rejected, so the user always sees the override they asked for.