Skip to main content

has_view_macro

Function has_view_macro 

Source
pub fn has_view_macro(src: &str) -> bool
Expand description

Fast, zero-allocation pre-check followed by token confirmation returning true iff src contains at least one view! { ... } / view!(...) / view![...] macro invocation outside comments, string literals, macro_rules! definitions, and .view! method positions.