Skip to main content

graphics_paths_contains

Function graphics_paths_contains 

Source
pub fn graphics_paths_contains(needle: &str) -> bool
Expand description

Zero-alloc membership test for GRAPHICSPATHS. Mirrors the Perl idiom grep { $_ eq $dir } @{ $state->lookupValue('GRAPHICSPATHS') } but without allocating an owned Vec<String> for a single boolean — the interned-symbol with/with2 family resolves each path in place.