wtx 0.47.6

A collection of different transport implementations and related tools focused primarily on web technologies.
Documentation
1
2
3
4
5
6
7
8
9
10
// FIXME(STABLE): Constant traits

use crate::{
  codec::{U32String, u32_string_pad},
  misc::{AsciiGraphic, const_ok},
};

pub(crate) fn nanosecond_string(nanosecond: u32) -> U32String {
  u32_string_pad(nanosecond, const { const_ok(AsciiGraphic::new(b'0')).unwrap() }, 9)
}