basic-text 0.19.2

Basic Text strings and I/O streams
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use basic_text::{text, text_substr};
use std::io::{sink, Write};

#[test]
fn text_macro() {
    let mut s = sink();
    writeln!(s, "{}", text!("hello world")).unwrap();
}

#[test]
fn text_substr_macro() {
    let mut s = sink();
    writeln!(s, "{}", text_substr!("hello world")).unwrap();
    writeln!(s, "{}", text_substr!("\u{200d}hello world\u{200d}")).unwrap();
}