Return a constant-value-loader closure. The returned closure looks up a global constant name and returns `Some(Some(value))` when found with a known value, `Some(None)` when found without a value, and `None` when not found.
(&self)
| 914 | /// `Some(None)` when found without a value, and `None` when not |
| 915 | /// found. |
| 916 | pub(crate) fn constant_loader(&self) -> impl Fn(&str) -> Option<Option<String>> + '_ { |
| 917 | move |name: &str| self.lookup_global_constant(name) |
| 918 | } |
| 919 | } |
no test coverage detected