Conversion
An abstraction crate to convert iterators on the fly.
Demo
use ;
use IterConverter;
use ;
// An original byte string.
let iter = b"stra\xc3\x9fe".into_iter.cloned;
// Decoding UTF-8 byte string.
let decoded = new;
assert_eq!;
// Convert to uppercase. (use ConvertedTryIterator because `decoded` returns Result items.)
let uppered = new;
assert_eq!;
// Re-encode the value.
let encoded = new;
assert_eq!;
Documentation
API Documentations are available on here.
Usage
Add to your Cargo.toml:
[]
= "0.1.0"
= { = "0.1.0", = ["async"] } # If you want to use asynchronous stream.
= { = "0.1.0", = false } # no_std support.
License
This program is licensed under the MIT license. See LICENSE for details.