Skip to main content

Crate realdentalcosts_data

Crate realdentalcosts_data 

Source
Expand description

This crate embeds the 2026 United States dental cost index compiled by the Real Dental Costs Data & Research Team — an estimated single dental-implant price, a restorative cost index, a cost-of-living index and a deprecated affordability score for the 50 states plus the District of Columbia — and exposes a small, zero-dependency Rust API to query it. The source CSV is embedded in the binary via include_str! and parsed on demand by a tiny internal parser.

§Correction (version 0.1.1, October 2026)

Version 0.1.0 described the implant series as observed prices. That was wrong. The implant_avg_usd column is an editorial estimate, edition 2026.1, not collected prices: the state ranking was validated against an independent price series (ASQ360, Spearman 0.945), the dollar levels were not verified. The values themselves are unchanged in this release. Details: data corrections notice.

The affordability_score was retired from realdentalcosts.com in October 2026 because one of its components has no documented source. The field stays in StateRow so that existing code keeps compiling; do not use it for new work.

§Where the numbers come from

The implant_avg_usd column comes from the Real Dental Costs dataset archived under DOI 10.5281/zenodo.20531728 (concept DOI). The restorative_index is a base-100 index derived from that same estimate; the dataset also carries a state cost_of_living_index (US average = 100). The full methodology and copy-paste citations are on the methodology page and the cite-this-data page.

This is pricing and market-research data, not medical advice.

§Going further

This crate deliberately ships raw data with no simulation logic. The same dataset powers the interactive US Dental Cost Index and the annual State of US Dental Costs 2026 report on realdentalcosts.com. The national average of the estimate in this edition is $4,507.

§Example

use realdentalcosts_data::{states, state, cheapest_states, priciest_states};

// Alabama: lowest estimate for a single implant; California: highest.
let al = state("AL").unwrap();
assert_eq!(al.rank, 1);
assert_eq!(al.implant_avg_usd, 3759);

let ca = state("CA").unwrap();
assert_eq!(ca.rank, 51);
assert_eq!(ca.implant_avg_usd, 5733);

// All 51 jurisdictions, and the ends of the ranking.
assert_eq!(states().len(), 51);
assert_eq!(cheapest_states(1)[0].state_code, "AL");
assert_eq!(priciest_states(1)[0].state_code, "CA");

Structs§

StateRow
One state-level row of the 2026 US dental cost index (50 states + DC).

Functions§

cheapest_states
The n states with the lowest implant estimate, ascending (editorial estimate, not collected prices).
most_affordable_statesDeprecated
The n states with the highest affordability score, descending.
priciest_states
The n states with the highest implant estimate, descending (editorial estimate, not collected prices).
state
Look up one state by its two-letter code (case-insensitive). None if unknown.
states
All 51 state-level rows (50 states + DC), in CSV order (ascending implant price).