Tracking Issue for path_trailing_sep (original) (raw)

Feature gate: #![feature(path_trailing_sep)]

This is a tracking issue for the Path::has_trailing_sep and related methods, which enforce whether a Path or PathBuf ends in a trailing separator.

Public API

impl Path { fn has_trailing_sep(&self) -> bool; fn with_trailing_sep(&self) -> Cow<'_, Path>; fn trim_trailing_sep(&self) -> &Path; } impl PathBuf { fn set_trailing_sep(&mut self, suffix: bool); fn push_trailing_sep(&mut self); fn pop_trailing_sep(&mut self); }

Steps / History

(Remember to update the S-tracking-* label when checking boxes.)

Unresolved Questions

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html