Efficiently find items by matching weight. If your data is static, you can build the lookup structure (a complete binary tree) at compile time, by making it `const`.

You can use any inferred numeric type for the weights. You can have any range for the lookup, by default `0.0 .. 1.0` for floats, and their respective whole spectrum for unsigned integers.

Features

  • rand
  • random
  • search
  • find
  • const

Project Activity

See All Activity >

Follow weight_matchers

weight_matchers Web Site

Other Useful Business Software
Go From AI Idea to AI App Fast Icon
Go From AI Idea to AI App Fast

One platform to build, fine-tune, and deploy ML models. No MLOps team required.

Access Gemini 3 and 200+ models. Build chatbots, agents, or custom models with built-in monitoring and scaling.
Try Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of weight_matchers!

Additional Project Details

Operating Systems

Android, ChromeOS, Linux, Mac, Windows

Intended Audience

Developers

Programming Language

Rust

Related Categories

Rust Software Development Software

Registered

2025-01-02