← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 10
  1. Conditional Impls

    It’s possible in Rust to conditionally implement methods and traits based on the traits implemented by a type’s own type parameters.

  2. Rust supports a number of type coercions, which implicitly convert one type to another.

  3. Naming Your Lifetimes

    You may not know this, but it’s possible to give names to your lifetimes which are longer than a single character!

  4. Trait objects are Rust’s usual mechanism for dynamic dispatch, and when they work they’re wonderful, but many Rust programmers have struggled with the question of when a trait can become a trait object, and what to do when a trait they’re using can’t.

  5. Rust functions are surprisingly diverse, sitting at the intersection of multiple language features which may take time to understand.

  6. Non-Generic Inner Functions

    Steve Klabnik recently wrote about whether out parameters are idiomatic in Rust.

  7. Rust gets a lot of first impression posts.

  8. Inbound & Outbound FFI

    Foreign Function Interfaces (FFI) are a core mechanism for enabling integration of new languages into existing codebases or building on existing libraries.

  9. Enum or Trait Object

    Rust has two major mechanisms for delegating logic: enums and trait objects, and it may be unclear when to use one or the other.

  10. Rust Lints You May Not Know

    The Rust compiler ships with a number of useful lints on by default, and many use Clippy to provide additional lints.