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§
Sourcefn as_rooted_path_compat(&self) -> &Path
fn as_rooted_path_compat(&self) -> &Path
Get the underlying path with a leading / or \.
Sourcefn as_rootless_path_compat(&self) -> &Path
fn as_rootless_path_compat(&self) -> &Path
Get the underlying path without a leading / or \.