Skip to main content

count_path_elements

Function count_path_elements 

Source
pub fn count_path_elements(path: &Path) -> (usize, usize, usize, usize, usize)
Expand description

Counts the number of each path element type in a Path.

Returns a tuple of (move_to, line_to, quad_to, curve_to, close) counts. Useful for diagnostics, debugging, and testing path construction.