nonstd 0.1.0

A non standard library
Documentation
1
2
3
4
5
6
7
8
9
10
11
extern crate nonstd;

use std::io::Write;

#[test]
fn string_buffer_is_a_writer() {
    let mut w = nonstd::string::Buffer::new();
    assert_eq!(w.write("hi".as_bytes()).unwrap(), 2);
    assert_eq!(w.as_str(), "hi");
}