Trait basenc::Decode
[−]
[src]
pub trait Decode<I: Iterator<Item = char>, R: Decoder<I>> { fn decode(self, encoding: R) -> R::Decoder; }
Char iterator adapter to a decoder.
Adapts any Iterator<Item = char>
into an iterator over a result of the decoded bytes.
Beware of code bloat! The entire decode logic may get inlined at the invocation site.
Examples
use basenc::Decode; assert!( "68656c6c6F".chars() .decode(basenc::AnyHex) .eq("hello".bytes().map(Ok)) );