VirtualPathExt

Trait VirtualPathExt 

Source
pub trait VirtualPathExt {
    // Required methods
    fn as_rooted_path_compat(&self) -> &Path;
    fn as_rootless_path_compat(&self) -> &Path;
}
Expand description

The VirtualPathExt trait is designed for compatibility between new and old versions of typst.

Required Methods§

Source

fn as_rooted_path_compat(&self) -> &Path

Get the underlying path with a leading / or \.

Source

fn as_rootless_path_compat(&self) -> &Path

Get the underlying path without a leading / or \.

Implementations on Foreign Types§

Source§

impl VirtualPathExt for VirtualPath

Implementors§