conv2 0.4.2

This crate provides a number of conversion traits with more specific semantics than those provided by 'as' or 'From'/'Into'.
Documentation
//! Are conversions easily usable in generic code?

use conv2::prelude::*;

#[test]
fn test_generic_unwrap() {
    fn do_conv<T, U>(t: T) -> U
    where
        T: ValueInto<U>,
    {
        t.value_into().unwrap()
    }

    assert_eq!(
        {
            let x: u8 = do_conv(42i32);
            x
        },
        42u8
    );
}