Skip to main content

element_carries_placeholder

Function element_carries_placeholder 

Source
pub fn element_carries_placeholder(element: &Element) -> bool
Expand description

Whether anything a substitution resolves on element carries a {: its own strings, and the arguments a use site passes.

A walk that skips an element with no placeholder in it asks this rather than carries_placeholder, so a component element whose only placeholder is a prop is not skipped.