Skip to content

Tracking Issue for const path separators #153106

@MikkelPaulson

Description

@MikkelPaulson

Feature gate: #![feature(const_path_separators)]

This is a tracking issue for making platform-specific path separator information available in a const context. Currently the main separator is available via std::path::MAIN_SEPARATOR, but secondary separators, if any, are not available at compile time.

Public API

// std::path

/// was pub fn
pub const fn is_separator(c: char) -> bool;

/// supplements MAIN_SEPARATOR
pub const SEPARATORS: &[char];

/// supplements MAIN_SEPARATOR_STR
pub const SEPARATORS_STR: &[&str];

Steps / History

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

Unresolved Questions

  • None yet.

Footnotes

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions