ferris Option & Result As Rust don't have null, we can use None of Option So how could we check if an Option is None or Some? So we can check and printed right result using match statement. Second, we can check if Option is None or Some(T) by ... ferrisoptionResultRustResult Rust - Generics Generics of Rust is same as Typescript's Generics. We can use Generics "like" this, but not the same. It means, some value of T type might have no std::fmt::Display implement. If we send Vector to print_thing function, a... ferrisGenericsRustGenerics
Option & Result As Rust don't have null, we can use None of Option So how could we check if an Option is None or Some? So we can check and printed right result using match statement. Second, we can check if Option is None or Some(T) by ... ferrisoptionResultRustResult Rust - Generics Generics of Rust is same as Typescript's Generics. We can use Generics "like" this, but not the same. It means, some value of T type might have no std::fmt::Display implement. If we send Vector to print_thing function, a... ferrisGenericsRustGenerics