MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / has_root

Method has_root

euralios_std/src/path.rs:344–346  ·  view source on GitHub ↗

true if the path starts with '/'

(&self)

Source from the content-addressed store, hash-verified

342
343 /// true if the path starts with '/'
344 pub fn has_root(&self) -> bool {
345 self.inner.bytes()[0] == b'/'
346 }
347
348 /// Returns true if the Path is absolute, i.e., if it is
349 /// independent of the current directory.

Callers 4

_pushMethod · 0.80
is_absoluteMethod · 0.80
componentsMethod · 0.80
include_cur_dirMethod · 0.80

Calls 1

bytesMethod · 0.45

Tested by

no test coverage detected