Docs.rs
rust-css-parser-2.3.0
Go to latest version
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Module resolve
rust_
css_
parser
2.3.0
Module resolve
Module Items
Structs
Functions
In rust_
css_
parser::
fs
rust_css_parser
::
fs
Module
resolve
Copy item path
Source
Expand description
Port of
src/fs/resolve.ts
: path and url helpers.
Structs
§
Resolved
Path
absolute and relative path of a resolved url
Functions
§
diff
relative path from a directory
dirname
the directory name of a path
match_
url
matchUrl
:
/^(https?:)?\/\//
normalize
normalize a path: backslashes, windows drive, query and fragment,
..
resolve
resolve a url relative to a directory (
cwd
is optional: “”)