Macro convert_to_str

Source
macro_rules! convert_to_str {
    ($ty_size:ty, $x:expr) => { ... };
}
Expand description

Version of to_fixedstr! that returns None instead of truncating .

  let fsopt = convert_to_str!(zstr<16>,0.013128009);
  assert!(matches!(fsopt.as_deref(),Some("0.013128009")))