try_into

Function try_into 

Source
pub fn try_into<F: TryInto<T>, T>(f: F) -> Result<T, F::Error>
Expand description

Tries to convert a value of type F into type T.

#[derive(Valust)]
struct Stringify {
    #[trans(func(i32 => try(try_into)))]
    num: i8,
}