cfg_find

Macro cfg_find 

Source
macro_rules! cfg_find {
    ($object:expr, $closure:expr) => { ... };
}
Expand description

Find an element e where lambda(e) evalutes to true (if any).

ยงNotes

  • This returns at most one entry that satisfies the given condition, not necessarily the first one.
  • closure must be a lambda function returning a boolean, e.g., |e| e > 0.