Itisintendedtobeusedbycratessuchas[owning_ref](https://crates.io/crates/owning_ref) and [rental](https://crates.io/crates/rental), as well as library authors who wish to make their code interoperable with such crates. For example, if you write a custom Vec type, you can implement StableDeref, and then users will be able to use your custom type together with owning_ref and rental.
#[cfg(feature = "alloc")] use alloc::boxed::Box; #[cfg(feature = "alloc")] use alloc::rc::Rc; #[cfg(feature = "alloc")] use alloc::sync::Arc; #[cfg(feature = "alloc")] use alloc::vec::Vec; #[cfg(feature = "alloc")] use alloc::string::String;
#[cfg(feature = "std")] use std::ffi::{CString, OsString}; #[cfg(feature = "std")] use std::path::PathBuf; #[cfg(feature = "std")] use std::sync::{MutexGuard, RwLockReadGuard, RwLockWriteGuard};
use core::cell::{Ref, RefMut};
#[cfg(feature = "alloc")] unsafeimpl<T: ?Sized> StableDeref forBox<T> {} #[cfg(feature = "alloc")] unsafeimpl<T> StableDeref for Vec<T> {} #[cfg(feature = "alloc")] unsafeimpl StableDeref for String {} #[cfg(feature = "std")] unsafeimpl StableDeref for CString {} #[cfg(feature = "std")] unsafeimpl StableDeref for OsString {} #[cfg(feature = "std")] unsafeimpl StableDeref for PathBuf {}
#[cfg(feature = "alloc")] unsafeimpl<T: ?Sized> StableDeref for Rc<T> {} #[cfg(feature = "alloc")] unsafeimpl<T: ?Sized> CloneStableDeref for Rc<T> {} #[cfg(feature = "alloc")] unsafeimpl<T: ?Sized> StableDeref for Arc<T> {} #[cfg(feature = "alloc")] unsafeimpl<T: ?Sized> CloneStableDeref for Arc<T> {}
unsafeimpl<'a, T: ?Sized> StableDeref for Ref<'a, T> {} unsafeimpl<'a, T: ?Sized> StableDeref for RefMut<'a, T> {} #[cfg(feature = "std")] unsafeimpl<'a, T: ?Sized> StableDeref for MutexGuard<'a, T> {} #[cfg(feature = "std")] unsafeimpl<'a, T: ?Sized> StableDeref for RwLockReadGuard<'a, T> {} #[cfg(feature = "std")] unsafeimpl<'a, T: ?Sized> StableDeref for RwLockWriteGuard<'a, T> {}
unsafeimpl<'a, T: ?Sized> StableDeref for &'a T {} unsafeimpl<'a, T: ?Sized> CloneStableDeref for &'a T {} unsafeimpl<'a, T: ?Sized> StableDeref for &'a mut T {}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.14 Sekunden
(vorverarbeitet am 2026-06-18)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.