Skip to main content

with_view

Function with_view 

Source
pub fn with_view<R>(view: &View, f: impl FnOnce(View<'_>) -> R) -> R
Expand description

Borrows an engine View as an mln_plugin::View for the duration of f (useful in plugin unit tests).