wtx 0.45.0

A collection of different transport implementations and related tools focused primarily on web technologies.
Documentation
1
2
3
4
5
6
7
8
9
use crate::collection::Vector;

pub(crate) fn _data(len: usize) -> Vector<u8> {
  Vector::from_iterator((0..len).map(|el| {
    let n = el % usize::from(u8::MAX);
    n.try_into().unwrap()
  }))
  .unwrap()
}