Freeze

Trait Freeze 

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

ยง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.

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 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 Ordering

ยง

impl Freeze for TryReserveErrorKind

ยง

impl Freeze for Alignment

ยง

impl Freeze for DebugAsHex

ยง

impl Freeze for scale_info::prelude::fmt::Sign

ยง

impl Freeze for FpCategory

ยง

impl Freeze for IntErrorKind

ยง

impl Freeze for OneSidedRangeBound

ยง

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 FormattingOptions

ยง

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 IntoChars

ยง

impl Freeze for String

ยง

impl Freeze for Duration

ยง

impl Freeze for TryFromFloatSecsError

ยง

impl Freeze for PhantomPinned

ยง

impl Freeze for Big8x3

ยง

impl Freeze for Big32x40

ยง

impl Freeze for CodePointInner

ยง

impl Freeze for Decimal

ยง

impl Freeze for DecimalSeq

ยง

impl Freeze for Decoded

ยง

impl Freeze for FullDecoded

ยง

impl Freeze for I32NotAllOnes

ยง

impl Freeze for I64NotAllOnes

ยง

impl Freeze for Nanoseconds

ยง

impl Freeze for NonZeroCharInner

ยง

impl Freeze for NonZeroI8Inner

ยง

impl Freeze for NonZeroI16Inner

ยง

impl Freeze for NonZeroI32Inner

ยง

impl Freeze for NonZeroI64Inner

ยง

impl Freeze for NonZeroI128Inner

ยง

impl Freeze for NonZeroIsizeInner

ยง

impl Freeze for NonZeroU8Inner

ยง

impl Freeze for NonZeroU16Inner

ยง

impl Freeze for NonZeroU32Inner

ยง

impl Freeze for NonZeroU64Inner

ยง

impl Freeze for NonZeroU128Inner

ยง

impl Freeze for NonZeroUsizeInner

ยง

impl Freeze for Sign

ยง

impl Freeze for U32NotAllOnes

ยง

impl Freeze for U64NotAllOnes

ยง

impl Freeze for UsizeNoHighBit

ยง

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

ยง

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

ยง

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

ยง

impl<'a> Freeze for PhantomContravariantLifetime<'a>

ยง

impl<'a> Freeze for PhantomCovariantLifetime<'a>

ยง

impl<'a> Freeze for PhantomInvariantLifetime<'a>

ยง

impl<'a> Freeze for Formatted<'a>

ยง

impl<'a> Freeze for Part<'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> Freeze for Cow<'a, B>
where <B as ToOwned>::Owned: Freeze, B: ?Sized,

ยง

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::btree_set::Cursor<'a, K>

ยง

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

ยง

impl<'a, K, A> Freeze for scale_info::prelude::collections::btree_set::CursorMutKey<'a, K, A>

ยง

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 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 Values<'a, K, V>

ยง

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

ยง

impl<'a, K, V, A> Freeze for scale_info::prelude::collections::btree_map::Entry<'a, K, V, A>
where K: Freeze, A: 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 scale_info::prelude::collections::btree_map::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 OccupiedError<'a, K, V, A>
where V: Freeze, A: Freeze,

ยง

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

ยง

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

ยง

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 SymmetricDifference<'a, T>

ยง

impl<'a, T> Freeze for 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::vec::PeekMut<'a, T>

ยง

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

ยง

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 scale_info::prelude::collections::binary_heap::PeekMut<'a, T, A>

ยง

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

ยง

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

ยง

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

ยง

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

ยง

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::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, R, F, A> Freeze for scale_info::prelude::collections::btree_set::ExtractIf<'a, T, R, F, A>
where F: Freeze, A: Freeze, R: Freeze,

ยง

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 C: Freeze, B: Freeze,

ยง

impl<F> Freeze for Fields<F>

ยง

impl<F> Freeze for Variants<F>

ยง

impl<F> Freeze for scale_info::prelude::fmt::FromFn<F>
where F: Freeze,

ยง

impl<F> Freeze for scale_info::prelude::iter::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<G> Freeze for FromCoroutine<G>
where G: Freeze,

ยง

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 as Iterator>::Item as IntoIterator>::IntoIter: Freeze, I: Freeze,

ยง

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

ยง

impl<I> Freeze for Intersperse<I>
where <I as Iterator>::Item: Sized + Freeze, I: 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 I: Freeze, F: Freeze,

ยง

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

ยง

impl<I, F> Freeze for Map<I, F>
where I: Freeze, F: 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 as Iterator>::Item: Freeze, I: 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 I: Freeze, F: Freeze, St: Freeze,

ยง

impl<I, U, F> Freeze for FlatMap<I, U, F>
where <U as IntoIterator>::IntoIter: Freeze, I: Freeze, F: 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, V, A> Freeze for scale_info::prelude::collections::btree_map::IntoIter<K, V, A>
where A: Freeze,

ยง

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

ยง

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

ยง

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

ยง

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 Interner<T>

ยง

impl<T> Freeze for UntrackedSymbol<T>

ยง

impl<T> Freeze for Field<T>
where <T as Form>::Type: Freeze, <T as Form>::String: 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 ThinBox<T>
where T: ?Sized,

ยง

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

ยง

impl<T> Freeze for NumBuffer<T>

ยง

impl<T> Freeze for Empty<T>

ยง

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

ยง

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

ยง

impl<T> Freeze for Discriminant<T>

ยง

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

ยง

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 PhantomContravariant<T>
where T: ?Sized,

ยง

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

ยง

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

ยง

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

ยง

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

ยง

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 Rc<T, A>
where A: Freeze, T: ?Sized,

ยง

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

ยง

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

ยง

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

ยง

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

ยง

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

ยง

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> Freeze for Successors<T, F>
where F: Freeze, T: Freeze,

ยง

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

ยง

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