Generics + Where Clause | Rust Language

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 มิ.ย. 2024
  • This video shows how to use the 'where' clause - when specifying generic types
    I take an example from "MOL" - Rust in a Month of Lunches by David Macleod and change it to return a value from the function and then rewrite the function the 'other way' and test it
    00:00 intro
    01:41 code
    11:40 different ways
    "When using a where clause is more expressive than using normal syntax"
    doc.rust-lang.org/rust-by-exa...
    #rustlang #rustprogramming #learningrust

ความคิดเห็น •