// get_type.ru use std::any::type_name; fn type_of(_: T) -> &'static str { type_name::() } fn main() { println!("get_type.ru running"); println!(" "); let j = 21; let i:i64 = 10; let k:i32 = 9; let y = 2.5; let x:f32 = 6.0; let name = "mine"; let yes = true; let n = 10; let mut _a = vec![0.0_f64; n]; let mut _b = vec![vec![0.0_f64; n]; n]; println!("j {}", type_of(j)); println!("i {}", type_of(i)); println!("k {}", type_of(k)); println!("y {}", type_of(y)); println!("x {}", type_of(x)); println!("name {}", type_of(name)); println!("yes {}", type_of(yes)); println!("n {}", type_of(n)); println!("_a {}", type_of(_a)); println!("_b {}", type_of(_b)); println!(" "); println!("get_type.ru finished"); }