Path::as_str
pub fn as_str() -> string Import
Source: use path::{Path}; src/path.hy Returns the path as a string.
Called on a Path value as value.as_str(…).
Returns#
string
See also#
Path: A file-system path, with helpers to take it apart and to use it.Path::from: Creates a path fromsas written.Path::join: Returns this path followed byother, with exactly one separator between them.Path::dirname: Returns the path without its last component.Path::basename: Returns the last component, ignoring trailing separators (""for an empty path or/).Path::extension: Returns the text after the last.of the last component, or""when there is none.Path::is_absolute: Returnstruewhen the path starts with a separator or a Windows drive letter (C:).Path::normalize: Removes.components, resolves..against the component before it, and collapses repeated separators.