Function ::std::any::type_name_of_val

Overview
fn type_name_of_val(value) -> String

Get the type name of a value.

Examples

use std::any;

let value = 42;
assert_eq!(any::type_name_of_val(value), "::std::i64");

let value = [];
assert_eq!(any::type_name_of_val(value), "::std::vec::Vec");