qubit-text-codec 0.1.0

Buffer-oriented text encoding and decoding utilities for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use qubit_text_codec::{
    CharsetCodec,
    Utf8Codec,
};

fn assert_charset_codec<T>(_codec: &T)
where
    T: CharsetCodec<Unit = u8>,
{
}

#[test]
fn test_charset_codec_is_implemented_for_combined_codecs() {
    assert_charset_codec(&Utf8Codec);
}