GeezerVison is showing doc.rust-lang.org — Freeze in std::marker - Rust pub unsafe auto trait Freeze { }
🔬This is a nightly-only experimental API. (freeze #121675) Expand descriptionUsed to determine whether a type contains
any UnsafeCell internally, but not through an indirection.
This affects, for example, whether a static of that type is
placed in read-only static memory or writable static memory.
This can be used to declare that a constant with a generic type
will not contain interior mutability, and subsequently allow
placing the constant behind references.
§Safety
This trait is a core part of the language, it is just expressed as a trait in libcore for
convenience. Do not implement it for other types.
Dyn Compatibility§This trait is dyn compatible. In older versions of Rust, dyn compatibility was called "object safety". Implementors§Auto implementors§§impl<'a, I, A> Freeze for std::collections::vec_deque::Splice<'a, I, A>§impl<'a, K, A> Freeze for std::collections::hash_set::Drain<'a, K, A>§impl<'a, K, F, A> Freeze for std::collections::hash_set::ExtractIf<'a, K, F, A>§impl<'a, K, V, A> Freeze for std::collections::btree_map::CursorMut<'a, K, V, A>§impl<'a, K, V, A> Freeze for std::collections::hash_map::Drain<'a, K, V, A>§impl<'a, K, V, A> Freeze for std::collections::hash_map::Entry<'a, K, V, A>§impl<'a, K, V, A> Freeze for std::collections::btree_map::Entry<'a, K, V, A>§impl<'a, K, V, F, A> Freeze for std::collections::hash_map::ExtractIf<'a, K, V, F, A>§impl<'a, K, V, R, F, A> Freeze for std::collections::btree_map::ExtractIf<'a, K, V, R, F, A>§impl<'a, K, V> Freeze for std::collections::btree_map::Cursor<'a, K, V>§impl<'a, K, V> Freeze for std::collections::hash_map::Iter<'a, K, V>§impl<'a, K, V> Freeze for std::collections::btree_map::Iter<'a, K, V>§impl<'a, K, V> Freeze for std::collections::hash_map::IterMut<'a, K, V>§impl<'a, K, V> Freeze for std::collections::btree_map::IterMut<'a, K, V>§impl<'a, K, V> Freeze for std::collections::hash_map::Keys<'a, K, V>§impl<'a, K, V> Freeze for std::collections::btree_map::Keys<'a, K, V>§impl<'a, K, V> Freeze for std::collections::btree_map::Range<'a, K, V>§impl<'a, K, V> Freeze for std::collections::hash_map::Values<'a, K, V>§impl<'a, K, V> Freeze for std::collections::btree_map::Values<'a, K, V>§impl<'a, K> Freeze for std::collections::btree_set::Cursor<'a, K>§impl<'a, K> Freeze for std::collections::hash_set::Iter<'a, K>§impl<'a, T, A> Freeze for std::collections::linked_list::Cursor<'a, T, A>§impl<'a, T, A> Freeze for std::collections::binary_heap::Drain<'a, T, A>§impl<'a, T, A> Freeze for std::collections::vec_deque::Drain<'a, T, A>§impl<'a, T, A> Freeze for std::collections::btree_set::Entry<'a, T, A>§impl<'a, T, A> Freeze for std::collections::binary_heap::PeekMut<'a, T, A>§impl<'a, T, F, A> Freeze for std::collections::linked_list::ExtractIf<'a, T, F, A>§impl<'a, T, F, A> Freeze for std::collections::vec_deque::ExtractIf<'a, T, F, A>§impl<'a, T, R, F, A> Freeze for std::collections::btree_set::ExtractIf<'a, T, R, F, A>§impl<'a, T, S, A> Freeze for std::collections::hash_set::Entry<'a, T, S, A>§impl<'a, T, S, A> Freeze for std::collections::hash_set::Union<'a, T, S, A>§impl<'a, T> Freeze for std::collections::binary_heap::Iter<'a, T>§impl<'a, T> Freeze for std::collections::btree_set::Iter<'a, T>§impl<'a, T> Freeze for std::collections::linked_list::Iter<'a, T>§impl<'a, T> Freeze for std::collections::vec_deque::Iter<'a, T>§impl<'a, T> Freeze for std::collections::btree_set::Range<'a, T>§impl<'a, T> Freeze for std::collections::btree_set::Union<'a, T> |