How do you handle situations in Rust where in other programming languages you might use runtime type checking?

This page summarizes the projects mentioned and recommended in the original post on /r/rust

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
Nutrient – The #1 PDF SDK Library, trusted by 10K+ developers
Other PDF SDKs promise a lot - then break. Laggy scrolling, poor mobile UX, tons of bugs, and lack of support cost you endless frustrations. Nutrient’s SDK handles billion-page workloads - so you don’t have to debug PDFs. Used by ~1 billion end users in more than 150 different countries.
www.nutrient.io
featured
  1. serde

    Serialization framework for Rust

    In a more complex example, I'd use serde to turn the JSON into a list of Stuff. (Or a parser like nom if it wasn't JSON.) This step would probably discard the null and the random string, giving you a Vec to process.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. nom

    Rust parser combinator framework

    In a more complex example, I'd use serde to turn the JSON into a list of Stuff. (Or a parser like nom if it wasn't JSON.) This step would probably discard the null and the random string, giving you a Vec to process.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Question about a rust rule

    2 projects | /r/rust | 2 May 2022
  • A question for all those that use Python

    4 projects | /r/rust | 7 Apr 2023
  • Learning to Parse Text Files: BOM!

    2 projects | /r/rust | 22 Jan 2022
  • Nom parser combinators now released in version 8, with a new architecture

    1 project | news.ycombinator.com | 31 Jan 2025
  • Nom released 8.0: A byte-oriented, zero-copy, parser combinators Rust library

    1 project | news.ycombinator.com | 27 Jan 2025