A quick multiple-choice check before you move on. Answer every question, then submit to see how you did.
1.In Rust, when you call a generic function like fn identity<T>(x: T) -> T with both an i32 and a &str, how is the generic code handled by the compiler?
2.A C# developer expects to write typeof(T) inside a generic Rust function to inspect the type argument at runtime. Why does this not translate to Rust?
3.You write fn print_it<T>(x: T) { println!("{}", x); } but it fails to compile because T might not be printable. What is the idiomatic fix?
4.Which statement correctly describes Option<T> and Result<T, E> in Rust?
5.For a generic struct Point<T> { x: T, y: T } used with T = f64, how are the fields stored compared to a C# generic reference type?