Skip to main content

shape_query_matches

Function shape_query_matches 

Source
pub fn shape_query_matches(
    cx: &mut Cx,
    candidate: &dyn Shape,
    wanted: &dyn Shape,
    relation: ShapeQueryRelation,
) -> Result<bool>
Expand description

Returns whether candidate satisfies the requested relation to wanted.

The relation is computed with the existing relate_shapes helper. Unknown relations fail closed for query filtering.