rust-lang/rust (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Tracking Issue for const Derefs #88955

@fee1-dead

Description

@fee1-dead

Feature gate: #![feature(const_deref)]

This is a tracking issue for implementing const Deref{,Mut} in the standard library.

Public API

// alloc::borrow

impl<B: ?Sized + ToOwned> const Deref for Cow<'_, B> where B::Owned: ~const Borrow { type Target = B; }

// core::mem::manually_drop impl<T: ?Sized> const Deref for ManuallyDrop { type Target = T; } impl<T: ?Sized> const DerefMut for ManuallyDrop { type Target = T; }

// core::ops::deref impl<T: ?Sized> const Deref for &mut T { type Target = T; } impl<T: ?Sized> const Deref for &T { type Target = T; }

Steps / History

Unresolved Questions