Skip to main content

is_default_package_path

Function is_default_package_path 

Source
pub fn is_default_package_path(text: &str, index: usize) -> bool
Expand description

Whether text binds a default package path at index.

The path is packages.<system>.default, the system segment an identifier or an interpolation, or the bare packages.default. It stands as a whole token, not as a segment of a longer path, and an = follows it.