pub fn with_platform<R>(
    factory: impl FnOnce() -> Box<dyn Platform + 'static>,
    f: impl FnOnce(&dyn Platform) -> R
) -> R
Expand description

Internal function to access the platform abstraction. The factory function is called if the platform abstraction is not yet initialized, and should be given by the platform_selector