Enum | Learn Rust part 8

Поделиться
HTML-код
  • Опубликовано: 5 янв 2025

Комментарии •

  • @smartcontractprogrammer
    @smartcontractprogrammer  3 дня назад

    0:00 Intro
    0:15 Declare an enum
    1:49 Initialize an enum
    2:58 Debug
    3:50 PartialEq
    4:54 Option
    6:26 Result
    Code github.com/t4sk/hello-rust
    Course www.smartcontract.engineer/

  • @yashgarg8180
    @yashgarg8180 День назад

    I just didn't get why you showed changing the value of variable while explaining the result.
    Like could you elaborate on this?

    • @smartcontractprogrammer
      @smartcontractprogrammer  18 часов назад

      Showing 2 examples of Result. Ok and Err. I didn't think it was necessary to print both