std::path

This module provides abstracted access to the path in a cross-platform way for manipulation.

Two types are provided, PathBuf and Path. These are wrappers around OsString and OsStr and allow direct work to be performed on strings according to the local platform path.

Structs, Traits, and Enums

  • StructsComponents (core iterator giving the parts of a path), Display (for safely printing paths with format!() and {}), Iter (iterator over the parts of a path), Path (slice of a path), PathBuf (owned mutable path), PrefixComponent (Windows-specific path prefix), and StripPrefixError (error returned from the Path::strip_prefix method indicating the prefix was not found in self).
  • EnumsComponent (single component of a path) and Prefix (path prefix [Windows only]).
  • Functionis_separator (determines whether the character is one of the permitted path separators).
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset