Skip to main content

ensure_categories

Function ensure_categories 

Source
pub fn ensure_categories<'a>(
    model: &mut Model,
    dims: impl IntoIterator<Item = (CategoryId, &'a str)>,
)
Expand description

Ensure a category exists for each (id, name) pair. Idempotent: an existing category (e.g. from a prior import) is left untouched.