macro_rules! unwrap_locate {
($n:expr) => { ... };
}Expand description
Extracts the first Locate variant from an iterator of RefNode.
This macro takes an expression that evaluates to an iterable collection
of RefNode elements and returns the first Locate variant found,
if any. If no Locate variant is found, it returns None.
§Arguments
$n:expr- An expression yielding an iterator overRefNodevalues.
§Returns
Option<Locate>- The firstLocatevariant found in the iterator, orNoneif none exist.