pub fn cast<T, U>(x: T) -> U
where
    T: ValueInto<U>,
{
    match x.value_into() {
        Ok(y) => y,
        Err(_) => panic!("Failed to convert"),
    }
}
/// Helper for a conversion that we know can't fail.
Helper for a conversion that we know can't fail.
Helper for a conversion that we know can ' t fail .
pub fn cast<T, U>(x: T) -> U
where
    T: ValueInto<U>,
{
    match x.value_into() {
        Ok(y) => y,
        Err(_) => panic!("Failed to convert"),
    }
}
pub fn cast < T , U > ( x : T ) -> U where T : ValueInto < U > , { match x . value_into ( ) { Ok ( y ) => y , Err ( _ ) => panic ! ( " " ) , } }
Helper for a conversion that we know can't fail.
Helper for a conversion that we know can ' t fail .
x
T
x
T