Skip to main content

resolve_preview_platform

Function resolve_preview_platform 

Source
pub fn resolve_preview_platform(
    platform_override: Option<CliPreviewPlatform>,
) -> Result<CliPreviewPlatform>
Expand description

Resolve the preview platform, defaulting to this host’s native preview platform.

§Errors

Returns an error on hosts with no native preview platform when no override is given.