Skip to main content

unwrap_locate

Macro unwrap_locate 

Source
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 over RefNode values.

§Returns

  • Option<Locate> - The first Locate variant found in the iterator, or None if none exist.