Skip to main content

exact_material_properties_where

Function exact_material_properties_where 

Source
pub fn exact_material_properties_where<S, P>(
    model: &Model,
    material: EntityId,
    select_set: S,
    select_property: P,
) -> Result<Vec<ExactPropertyEntry>, ExactPropertyError>
where S: FnMut(&str) -> bool, P: FnMut(&str) -> bool,
Expand description

The properties of material definition material in the sets select_set picks, whose names select_property picks, resolved exactly (#218).

It answers what exact_material_property answers, for every selected property at once, as exact_properties_where does for an object. The result is in file order of the sets, each set’s members in file or schema order. An empty result is a proven absence of every selected property.

§Errors

Any ExactPropertyError, as for exact_material_property, and the ambiguity refusals of exact_properties_where.