Function sp_externalities::with_externalities [−][src]
pub fn with_externalities<F: FnOnce(&mut dyn Externalities) -> R, R>(
f: F
) -> Option<R>
Expand description
Execute the given closure with the currently set externalities.
Returns None
if no externalities are set or Some(_)
with the result of the closure.