Skip to main content

resolve_preview_target

Function resolve_preview_target 

Source
pub fn resolve_preview_target(
    crate_name: &str,
    target: &str,
    force_expression: bool,
) -> PreviewTarget
Expand description

Resolve the preview target: expr forces expression mode, and a target that is not a Rust path is treated as an expression either way.