Skip to main content

with_fallback

Function with_fallback 

Source
pub fn with_fallback<R>(on: bool, f: impl FnOnce() -> R) -> R
Expand description

Run f — a backend’s conversion — with the HTML fallback on (on) or off; the previous state is restored afterwards, also on a panic.