discontinuedPackage rust_std has been discontinued and replaced by rust_core.

hasRoot method

bool hasRoot()

Returns true if the Path has a root.

Implementation

bool hasRoot() => _windows.rootPrefix(string) == _pathSeparator;