pub unsafe auto trait Freeze { }
🔬This is a nightly-only experimental API. (freeze)
Expand description

Used 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.

Implementors§

source§

impl<T> !Freeze for UnsafeCell<T>
where T: ?Sized,

source§

impl<T> Freeze for *const T
where T: ?Sized,

source§

impl<T> Freeze for *mut T
where T: ?Sized,

source§

impl<T> Freeze for &T
where T: ?Sized,

source§

impl<T> Freeze for &mut T
where T: ?Sized,

1.28.0 · source§

impl<T> Freeze for NonZero<T>

source§

impl<T> Freeze for PhantomData<T>
where T: ?Sized,

Auto implementors§

§

impl !Freeze for AtomicBool

§

impl !Freeze for AtomicI8

§

impl !Freeze for AtomicI16

§

impl !Freeze for AtomicI32

§

impl !Freeze for AtomicI64

§

impl !Freeze for AtomicIsize

§

impl !Freeze for AtomicU8

§

impl !Freeze for AtomicU16

§

impl !Freeze for AtomicU32

§

impl !Freeze for AtomicU64

§

impl !Freeze for AtomicUsize

§

impl !Freeze for Barrier

§

impl !Freeze for Condvar

§

impl !Freeze for scale_info::prelude::sync::Once

§

impl !Freeze for OnceState

§

impl Freeze for NamedFields

§

impl Freeze for NoFields

§

impl Freeze for UnnamedFields

§

impl Freeze for NameAssigned

§

impl Freeze for NameNotAssigned

§

impl Freeze for TypeAssigned

§

impl Freeze for TypeNotAssigned

§

impl Freeze for PathAssigned

§

impl Freeze for PathNotAssigned

§

impl Freeze for IndexAssigned

§

impl Freeze for IndexNotAssigned

§

impl Freeze for PathError

§

impl Freeze for TypeDefPrimitive

§

impl Freeze for MetaForm

§

impl Freeze for PortableForm

§

impl Freeze for scale_info::prelude::cmp::Ordering

§

impl Freeze for TryReserveErrorKind

§

impl Freeze for Alignment

§

impl Freeze for FpCategory

§

impl Freeze for IntErrorKind

§

impl Freeze for scale_info::prelude::sync::atomic::Ordering

§

impl Freeze for RecvTimeoutError

§

impl Freeze for TryRecvError

§

impl Freeze for MetaType

§

impl Freeze for PortableRegistry

§

impl Freeze for PortableRegistryBuilder

§

impl Freeze for PortableType

§

impl Freeze for Registry

§

impl Freeze for TypeId

§

impl Freeze for UnorderedKeyError

§

impl Freeze for TryReserveError

§

impl Freeze for Error

§

impl Freeze for DefaultHasher

§

impl Freeze for RandomState

§

impl Freeze for SipHasher

§

impl Freeze for Assume

§

impl Freeze for ParseFloatError

§

impl Freeze for ParseIntError

§

impl Freeze for TryFromIntError

§

impl Freeze for RangeFull

§

impl Freeze for FromUtf8Error

§

impl Freeze for FromUtf16Error

§

impl Freeze for String

§

impl Freeze for RecvError

§

impl Freeze for BarrierWaitResult

§

impl Freeze for WaitTimeoutResult

§

impl Freeze for Duration

§

impl Freeze for Instant

§

impl Freeze for SystemTime

§

impl Freeze for SystemTimeError

§

impl Freeze for TryFromFloatSecsError

§

impl Freeze for PhantomPinned

§

impl<'a> Freeze for Arguments<'a>

§

impl<'a> Freeze for Formatter<'a>

§

impl<'a> Freeze for scale_info::prelude::string::Drain<'a>

§

impl<'a, 'b> Freeze for DebugList<'a, 'b>

§

impl<'a, 'b> Freeze for DebugMap<'a, 'b>

§

impl<'a, 'b> Freeze for DebugSet<'a, 'b>

§

impl<'a, 'b> Freeze for DebugStruct<'a, 'b>

§

impl<'a, 'b> Freeze for DebugTuple<'a, 'b>

§

impl<'a, B: ?Sized> Freeze for Cow<'a, B>
where <B as ToOwned>::Owned: Freeze,

§

impl<'a, I> Freeze for ByRefSized<'a, I>

§

impl<'a, I, A> Freeze for Splice<'a, I, A>
where I: Freeze,

§

impl<'a, K> Freeze for scale_info::prelude::collections::hash_set::Drain<'a, K>

§

impl<'a, K> Freeze for scale_info::prelude::collections::hash_set::Iter<'a, K>

§

impl<'a, K, F> Freeze for scale_info::prelude::collections::hash_set::ExtractIf<'a, K, F>
where F: Freeze,

§

impl<'a, K, V> Freeze for scale_info::prelude::collections::hash_map::Entry<'a, K, V>
where K: Freeze,

§

impl<'a, K, V> Freeze for scale_info::prelude::collections::btree_map::Cursor<'a, K, V>

§

impl<'a, K, V> Freeze for scale_info::prelude::collections::btree_map::Iter<'a, K, V>

§

impl<'a, K, V> Freeze for scale_info::prelude::collections::btree_map::IterMut<'a, K, V>

§

impl<'a, K, V> Freeze for scale_info::prelude::collections::btree_map::Keys<'a, K, V>

§

impl<'a, K, V> Freeze for scale_info::prelude::collections::btree_map::Range<'a, K, V>

§

impl<'a, K, V> Freeze for RangeMut<'a, K, V>

§

impl<'a, K, V> Freeze for scale_info::prelude::collections::btree_map::Values<'a, K, V>

§

impl<'a, K, V> Freeze for scale_info::prelude::collections::btree_map::ValuesMut<'a, K, V>

§

impl<'a, K, V> Freeze for scale_info::prelude::collections::hash_map::Drain<'a, K, V>

§

impl<'a, K, V> Freeze for scale_info::prelude::collections::hash_map::Iter<'a, K, V>

§

impl<'a, K, V> Freeze for scale_info::prelude::collections::hash_map::IterMut<'a, K, V>

§

impl<'a, K, V> Freeze for scale_info::prelude::collections::hash_map::Keys<'a, K, V>

§

impl<'a, K, V> Freeze for scale_info::prelude::collections::hash_map::OccupiedEntry<'a, K, V>
where K: Freeze,

§

impl<'a, K, V> Freeze for scale_info::prelude::collections::hash_map::OccupiedError<'a, K, V>
where K: Freeze, V: Freeze,

§

impl<'a, K, V> Freeze for scale_info::prelude::collections::hash_map::VacantEntry<'a, K, V>
where K: Freeze,

§

impl<'a, K, V> Freeze for scale_info::prelude::collections::hash_map::Values<'a, K, V>

§

impl<'a, K, V> Freeze for scale_info::prelude::collections::hash_map::ValuesMut<'a, K, V>

§

impl<'a, K, V, A> Freeze for scale_info::prelude::collections::btree_map::Entry<'a, K, V, A>
where A: Freeze, K: Freeze,

§

impl<'a, K, V, A> Freeze for scale_info::prelude::collections::btree_map::CursorMut<'a, K, V, A>

§

impl<'a, K, V, A> Freeze for CursorMutKey<'a, K, V, A>

§

impl<'a, K, V, A> Freeze for scale_info::prelude::collections::btree_map::OccupiedEntry<'a, K, V, A>
where A: Freeze,

§

impl<'a, K, V, A> Freeze for scale_info::prelude::collections::btree_map::OccupiedError<'a, K, V, A>
where A: Freeze, V: Freeze,

§

impl<'a, K, V, A> Freeze for scale_info::prelude::collections::btree_map::VacantEntry<'a, K, V, A>
where A: Freeze, K: Freeze,

§

impl<'a, K, V, F> Freeze for scale_info::prelude::collections::hash_map::ExtractIf<'a, K, V, F>
where F: Freeze,

§

impl<'a, K, V, F, A> Freeze for scale_info::prelude::collections::btree_map::ExtractIf<'a, K, V, F, A>
where A: Freeze, F: Freeze,

§

impl<'a, K, V, S> Freeze for RawEntryMut<'a, K, V, S>

§

impl<'a, K, V, S> Freeze for RawEntryBuilder<'a, K, V, S>

§

impl<'a, K, V, S> Freeze for RawEntryBuilderMut<'a, K, V, S>

§

impl<'a, K, V, S> Freeze for RawOccupiedEntryMut<'a, K, V, S>

§

impl<'a, K, V, S> Freeze for RawVacantEntryMut<'a, K, V, S>

§

impl<'a, T> Freeze for Symbol<'a, T>

§

impl<'a, T> Freeze for scale_info::prelude::collections::binary_heap::Iter<'a, T>

§

impl<'a, T> Freeze for scale_info::prelude::collections::btree_set::Iter<'a, T>

§

impl<'a, T> Freeze for scale_info::prelude::collections::btree_set::Range<'a, T>

§

impl<'a, T> Freeze for scale_info::prelude::collections::btree_set::SymmetricDifference<'a, T>

§

impl<'a, T> Freeze for scale_info::prelude::collections::btree_set::Union<'a, T>

§

impl<'a, T> Freeze for scale_info::prelude::collections::linked_list::Iter<'a, T>

§

impl<'a, T> Freeze for scale_info::prelude::collections::linked_list::IterMut<'a, T>

§

impl<'a, T> Freeze for scale_info::prelude::collections::vec_deque::Iter<'a, T>

§

impl<'a, T> Freeze for scale_info::prelude::collections::vec_deque::IterMut<'a, T>

§

impl<'a, T> Freeze for scale_info::prelude::sync::mpsc::Iter<'a, T>

§

impl<'a, T> Freeze for TryIter<'a, T>

§

impl<'a, T, A> Freeze for scale_info::prelude::collections::binary_heap::Drain<'a, T, A>

§

impl<'a, T, A> Freeze for DrainSorted<'a, T, A>

§

impl<'a, T, A> Freeze for PeekMut<'a, T, A>

§

impl<'a, T, A> Freeze for scale_info::prelude::collections::btree_set::Difference<'a, T, A>

§

impl<'a, T, A> Freeze for scale_info::prelude::collections::btree_set::Intersection<'a, T, A>

§

impl<'a, T, A> Freeze for scale_info::prelude::collections::linked_list::Cursor<'a, T, A>

§

impl<'a, T, A> Freeze for scale_info::prelude::collections::linked_list::CursorMut<'a, T, A>

§

impl<'a, T, A> Freeze for scale_info::prelude::collections::vec_deque::Drain<'a, T, A>

§

impl<'a, T, A> Freeze for scale_info::prelude::vec::Drain<'a, T, A>

§

impl<'a, T, F, A> Freeze for scale_info::prelude::collections::btree_set::ExtractIf<'a, T, F, A>
where A: Freeze, F: Freeze,

§

impl<'a, T, F, A> Freeze for scale_info::prelude::collections::linked_list::ExtractIf<'a, T, F, A>
where F: Freeze,

§

impl<'a, T, F, A> Freeze for scale_info::prelude::vec::ExtractIf<'a, T, F, A>
where F: Freeze,

§

impl<'a, T, S> Freeze for scale_info::prelude::collections::hash_set::Difference<'a, T, S>

§

impl<'a, T, S> Freeze for scale_info::prelude::collections::hash_set::Intersection<'a, T, S>

§

impl<'a, T, S> Freeze for scale_info::prelude::collections::hash_set::SymmetricDifference<'a, T, S>

§

impl<'a, T, S> Freeze for scale_info::prelude::collections::hash_set::Union<'a, T, S>

§

impl<'a, T: ?Sized> Freeze for MappedMutexGuard<'a, T>

§

impl<'a, T: ?Sized> Freeze for MappedRwLockReadGuard<'a, T>

§

impl<'a, T: ?Sized> Freeze for MappedRwLockWriteGuard<'a, T>

§

impl<'a, T: ?Sized> Freeze for MutexGuard<'a, T>

§

impl<'a, T: ?Sized> Freeze for ReentrantLockGuard<'a, T>

§

impl<'a, T: ?Sized> Freeze for RwLockReadGuard<'a, T>

§

impl<'a, T: ?Sized> Freeze for RwLockWriteGuard<'a, T>

§

impl<A> Freeze for Repeat<A>
where A: Freeze,

§

impl<A> Freeze for RepeatN<A>
where A: Freeze,

§

impl<A, B> Freeze for Chain<A, B>
where A: Freeze, B: Freeze,

§

impl<A, B> Freeze for Zip<A, B>
where A: Freeze, B: Freeze,

§

impl<B, C> Freeze for ControlFlow<B, C>
where B: Freeze, C: Freeze,

§

impl<F> Freeze for Fields<F>

§

impl<F> Freeze for Variants<F>

§

impl<F> Freeze for FormatterFn<F>
where F: Freeze,

§

impl<F> Freeze for FromFn<F>
where F: Freeze,

§

impl<F> Freeze for OnceWith<F>
where F: Freeze,

§

impl<F> Freeze for RepeatWith<F>
where F: Freeze,

§

impl<F, N, T> Freeze for FieldBuilder<F, N, T>
where <F as Form>::String: Freeze, <F as Form>::Type: Freeze,

§

impl<F, S> Freeze for TypeBuilder<F, S>

§

impl<F, S> Freeze for VariantBuilder<F, S>
where <F as Form>::String: Freeze,

§

impl<F, T> Freeze for FieldsBuilder<F, T>

§

impl<H> Freeze for BuildHasherDefault<H>

§

impl<I> Freeze for Cloned<I>
where I: Freeze,

§

impl<I> Freeze for Copied<I>
where I: Freeze,

§

impl<I> Freeze for Cycle<I>
where I: Freeze,

§

impl<I> Freeze for Enumerate<I>
where I: Freeze,

§

impl<I> Freeze for Flatten<I>
where I: Freeze, <<I as Iterator>::Item as IntoIterator>::IntoIter: Freeze,

§

impl<I> Freeze for Fuse<I>
where I: Freeze,

§

impl<I> Freeze for Intersperse<I>
where I: Freeze, <I as Iterator>::Item: Freeze,

§

impl<I> Freeze for Peekable<I>
where I: Freeze, <I as Iterator>::Item: Freeze,

§

impl<I> Freeze for Skip<I>
where I: Freeze,

§

impl<I> Freeze for StepBy<I>
where I: Freeze,

§

impl<I> Freeze for Take<I>
where I: Freeze,

§

impl<I, F> Freeze for FilterMap<I, F>
where F: Freeze, I: Freeze,

§

impl<I, F> Freeze for Inspect<I, F>
where F: Freeze, I: Freeze,

§

impl<I, F> Freeze for Map<I, F>
where F: Freeze, I: Freeze,

§

impl<I, F, const N: usize> Freeze for MapWindows<I, F, N>
where F: Freeze, I: Freeze, <I as Iterator>::Item: Freeze,

§

impl<I, G> Freeze for IntersperseWith<I, G>
where G: Freeze, I: Freeze, <I as Iterator>::Item: Freeze,

§

impl<I, P> Freeze for Filter<I, P>
where I: Freeze, P: Freeze,

§

impl<I, P> Freeze for MapWhile<I, P>
where I: Freeze, P: Freeze,

§

impl<I, P> Freeze for SkipWhile<I, P>
where I: Freeze, P: Freeze,

§

impl<I, P> Freeze for TakeWhile<I, P>
where I: Freeze, P: Freeze,

§

impl<I, St, F> Freeze for Scan<I, St, F>
where F: Freeze, I: Freeze, St: Freeze,

§

impl<I, U, F> Freeze for FlatMap<I, U, F>
where F: Freeze, I: Freeze, <U as IntoIterator>::IntoIter: Freeze,

§

impl<I, const N: usize> Freeze for ArrayChunks<I, N>
where I: Freeze, <I as Iterator>::Item: Freeze,

§

impl<Idx> Freeze for scale_info::prelude::ops::Range<Idx>
where Idx: Freeze,

§

impl<Idx> Freeze for RangeFrom<Idx>
where Idx: Freeze,

§

impl<Idx> Freeze for RangeInclusive<Idx>
where Idx: Freeze,

§

impl<Idx> Freeze for RangeTo<Idx>
where Idx: Freeze,

§

impl<Idx> Freeze for RangeToInclusive<Idx>
where Idx: Freeze,

§

impl<K> Freeze for scale_info::prelude::collections::hash_set::IntoIter<K>

§

impl<K, V> Freeze for scale_info::prelude::collections::hash_map::IntoIter<K, V>

§

impl<K, V> Freeze for scale_info::prelude::collections::hash_map::IntoKeys<K, V>

§

impl<K, V> Freeze for scale_info::prelude::collections::hash_map::IntoValues<K, V>

§

impl<K, V, A> Freeze for scale_info::prelude::collections::btree_map::IntoIter<K, V, A>
where A: Freeze,

§

impl<K, V, A> Freeze for scale_info::prelude::collections::btree_map::IntoKeys<K, V, A>
where A: Freeze,

§

impl<K, V, A> Freeze for scale_info::prelude::collections::btree_map::IntoValues<K, V, A>
where A: Freeze,

§

impl<K, V, A> Freeze for BTreeMap<K, V, A>
where A: Freeze,

§

impl<K, V, S> Freeze for HashMap<K, V, S>
where S: Freeze,

§

impl<T> !Freeze for AtomicPtr<T>

§

impl<T> !Freeze for Mutex<T>

§

impl<T> !Freeze for OnceLock<T>

§

impl<T> !Freeze for ReentrantLock<T>

§

impl<T> !Freeze for RwLock<T>

§

impl<T> Freeze for TypeDef<T>
where <T as Form>::Type: Freeze,

§

impl<T> Freeze for Bound<T>
where T: Freeze,

§

impl<T> Freeze for TryLockError<T>
where T: Freeze,

§

impl<T> Freeze for TrySendError<T>
where T: Freeze,

§

impl<T> Freeze for Interner<T>

§

impl<T> Freeze for UntrackedSymbol<T>

§

impl<T> Freeze for Field<T>
where <T as Form>::String: Freeze, <T as Form>::Type: Freeze,

§

impl<T> Freeze for Path<T>

§

impl<T> Freeze for Type<T>
where <T as Form>::Type: Freeze,

§

impl<T> Freeze for TypeDefArray<T>
where <T as Form>::Type: Freeze,

§

impl<T> Freeze for TypeDefBitSequence<T>
where <T as Form>::Type: Freeze,

§

impl<T> Freeze for TypeDefCompact<T>
where <T as Form>::Type: Freeze,

§

impl<T> Freeze for TypeDefComposite<T>

§

impl<T> Freeze for TypeDefSequence<T>
where <T as Form>::Type: Freeze,

§

impl<T> Freeze for TypeDefTuple<T>

§

impl<T> Freeze for TypeDefVariant<T>

§

impl<T> Freeze for TypeParameter<T>
where <T as Form>::String: Freeze, <T as Form>::Type: Freeze,

§

impl<T> Freeze for Variant<T>
where <T as Form>::String: Freeze,

§

impl<T> Freeze for Reverse<T>
where T: Freeze,

§

impl<T> Freeze for Empty<T>

§

impl<T> Freeze for scale_info::prelude::iter::Once<T>
where T: Freeze,

§

impl<T> Freeze for Rev<T>
where T: Freeze,

§

impl<T> Freeze for Discriminant<T>

§

impl<T> Freeze for Saturating<T>
where T: Freeze,

§

impl<T> Freeze for Wrapping<T>
where T: Freeze,

§

impl<T> Freeze for Yeet<T>
where T: Freeze,

§

impl<T> Freeze for UniqueRc<T>

§

impl<T> Freeze for scale_info::prelude::sync::mpsc::IntoIter<T>

§

impl<T> Freeze for Receiver<T>

§

impl<T> Freeze for SendError<T>
where T: Freeze,

§

impl<T> Freeze for Sender<T>

§

impl<T> Freeze for SyncSender<T>

§

impl<T> Freeze for PoisonError<T>
where T: Freeze,

§

impl<T> Freeze for MaybeUninit<T>
where T: Freeze,

§

impl<T, A> Freeze for scale_info::prelude::collections::binary_heap::IntoIter<T, A>
where A: Freeze,

§

impl<T, A> Freeze for IntoIterSorted<T, A>
where A: Freeze,

§

impl<T, A> Freeze for scale_info::prelude::collections::btree_set::IntoIter<T, A>
where A: Freeze,

§

impl<T, A> Freeze for scale_info::prelude::collections::linked_list::IntoIter<T, A>
where A: Freeze,

§

impl<T, A> Freeze for BTreeSet<T, A>
where A: Freeze,

§

impl<T, A> Freeze for BinaryHeap<T, A>
where A: Freeze,

§

impl<T, A> Freeze for LinkedList<T, A>
where A: Freeze,

§

impl<T, A> Freeze for VecDeque<T, A>
where A: Freeze,

§

impl<T, A> Freeze for scale_info::prelude::collections::vec_deque::IntoIter<T, A>
where A: Freeze,

§

impl<T, A> Freeze for scale_info::prelude::vec::IntoIter<T, A>
where A: Freeze,

§

impl<T, A> Freeze for Vec<T, A>
where A: Freeze,

§

impl<T, F = fn() -> T> !Freeze for LazyLock<T, F>

§

impl<T, F> Freeze for Successors<T, F>
where F: Freeze, T: Freeze,

§

impl<T, S> Freeze for HashSet<T, S>
where S: Freeze,

§

impl<T: ?Sized> Freeze for ThinBox<T>

§

impl<T: ?Sized> Freeze for ManuallyDrop<T>
where T: Freeze,

§

impl<T: ?Sized> Freeze for Exclusive<T>
where T: Freeze,

§

impl<T: ?Sized, A> Freeze for Box<T, A>
where A: Freeze,

§

impl<T: ?Sized, A> Freeze for Rc<T, A>
where A: Freeze,

§

impl<T: ?Sized, A> Freeze for scale_info::prelude::rc::Weak<T, A>
where A: Freeze,

§

impl<T: ?Sized, A> Freeze for Arc<T, A>
where A: Freeze,

§

impl<T: ?Sized, A> Freeze for scale_info::prelude::sync::Weak<T, A>
where A: Freeze,

§

impl<Y, R> Freeze for CoroutineState<Y, R>
where R: Freeze, Y: Freeze,