Skip to main content

format_scalar

Function format_scalar 

Source
pub(crate) fn format_scalar(et: ElementType, data: &[u8], idx: u64) -> String
Expand description

Decode and format the element at logical index idx from data.

Complex types are formatted as (real+imagj); float128 (no stable Rust type) and any unknown/private type are shown as raw hex.