const/method

    0

    0

    lucycodes42

    Rust snippets

    In the code, the impl type function creates a new type. The function takes no arguments.

    Shortcut: impl

    impl type {
      fn new() -> type {
        type{}
      }
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.