Tracking Issue for allowing comparisons between CStr
, CString
, and Cow<CStr>
. · Issue #137265 · rust-lang/rust (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Description
Feature gate: #![feature(c_string_eq_c_str)]
This is a tracking issue for extending the possible comparisons between CStr
, CString
, and Cow<CStr>
.
Public API
// core::ffi
impl PartialEq<&Self> for CStr;
impl PartialEq for CStr;
impl PartialEq<Cow<'_, Self>> for CStr;
// alloc::ffi
impl PartialEq for CString;
impl PartialEq<&CStr> for CString;
impl PartialEq<Cow<'_, CStr>> for CString;
// alloc::borrow
impl PartialEq for Cow<'_, CStr>;
impl PartialEq<&CStr> for Cow<'_, CStr>;
impl PartialEq for Cow<'_, CStr>;
Steps / History
- API Change Proposal (ACP): #517
- Implementation: Allow comparisons between CStr, CString, and Cow. #137268
Unresolved Questions
- None yet.