Skip to main content

Crate custom_motorcycle_helmet_styles

Crate custom_motorcycle_helmet_styles 

Source
Expand description

Motorcycle helmet shell silhouettes, paintable zones and surface finishes across 33 styles and 5 rider categories.

Maintained from the open shell catalog powering Custom Motorcycle Helmet and its interactive 3D motorcycle helmet designer.

§Example

use custom_motorcycle_helmet_styles::{by_category, find_style, paintable_zones, STYLES};

let shell = find_style("Retro full face").unwrap();
assert_eq!(shell.id, "retro-full-face");
assert_eq!(by_category("Motocross").len(), 7);
assert_eq!(paintable_zones("jet-long-shield"), &["crown", "forehead", "sides", "back", "neck"]);
assert_eq!(STYLES.len(), 33);

Structs§

HelmetStyle
Metadata for a single motorcycle helmet shell silhouette.

Constants§

RAW_JSON
Raw JSON dataset identical to data/styles.json.
UPDATED
Dataset revision date (ISO 8601).

Statics§

FINISHES
Supported clearcoat and material finishes for 3D helmet previews.
OPEN_ZONES
Paintable shell zone list for open-face and half helmets without a chin bar.
STYLES
All 33 motorcycle helmet shell silhouettes across 5 rider categories.
ZONES
Full paintable shell zone list when a closed chin bar is present.

Functions§

by_category
Return all helmet styles in a rider category (e.g. "Full face", "Motocross", "Half helmet").
find_style
Find a helmet shell style by id or model name (case and separator insensitive).
paintable_zones
Return the paintable shell zones available on the helmet style matched by query.