pub unsafe auto trait Freeze { }
🔬This is a nightly-only experimental API. (freeze)
Available on crate feature std only.
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 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 wasmer_types::lib::std::sync::Once

§

impl !Freeze for OnceState

§

impl Freeze for RelocationKind

§

impl Freeze for RelocationKindResolver

§

impl Freeze for RelocationTarget

§

impl Freeze for RelocationTargetResolver

§

impl Freeze for CustomSectionProtection

§

impl Freeze for CustomSectionProtectionResolver

§

impl Freeze for Symbol

§

impl Freeze for SymbolResolver

§

impl Freeze for CpuFeature

§

impl Freeze for ArchivedCompiledFunctionUnwindInfo

§

impl Freeze for CompiledFunctionUnwindInfo

§

impl Freeze for CompiledFunctionUnwindInfoResolver

§

impl Freeze for Aarch64Architecture

§

impl Freeze for Architecture

§

impl Freeze for BinaryFormat

§

impl Freeze for CallingConvention

§

impl Freeze for Endianness

§

impl Freeze for Environment

§

impl Freeze for ExportIndex

§

impl Freeze for ExternType

§

impl Freeze for GlobalInit

§

impl Freeze for ImportIndex

§

impl Freeze for LibCall

§

impl Freeze for MemoryStyle

§

impl Freeze for Mutability

§

impl Freeze for OnCalledAction

§

impl Freeze for OperatingSystem

§

impl Freeze for PointerWidth

§

impl Freeze for TableStyle

§

impl Freeze for TrapCode

§

impl Freeze for Type

§

impl Freeze for Vendor

§

impl Freeze for CompileError

§

impl Freeze for DeserializeError

§

impl Freeze for ImportError

§

impl Freeze for MemoryError

§

impl Freeze for ParseCpuFeatureError

§

impl Freeze for PreInstantiationError

§

impl Freeze for SerializeError

§

impl Freeze for WasmError

§

impl Freeze for wasmer_types::lib::std::cmp::Ordering

§

impl Freeze for Infallible

§

impl Freeze for wasmer_types::lib::std::fmt::Alignment

§

impl Freeze for wasmer_types::lib::std::sync::atomic::Ordering

§

impl Freeze for RecvTimeoutError

§

impl Freeze for TryRecvError

§

impl Freeze for ArchivedFunctionAddressMap

§

impl Freeze for ArchivedInstructionAddressMap

§

impl Freeze for FunctionAddressMap

§

impl Freeze for FunctionAddressMapResolver

§

impl Freeze for InstructionAddressMap

§

impl Freeze for InstructionAddressMapResolver

§

impl Freeze for ArchivedCompiledFunction

§

impl Freeze for ArchivedCompiledFunctionFrameInfo

§

impl Freeze for ArchivedFunctionBody

§

impl Freeze for Compilation

§

impl Freeze for CompiledFunction

§

impl Freeze for CompiledFunctionFrameInfo

§

impl Freeze for CompiledFunctionFrameInfoResolver

§

impl Freeze for CompiledFunctionResolver

§

impl Freeze for Dwarf

§

impl Freeze for DwarfResolver

§

impl Freeze for FunctionBody

§

impl Freeze for FunctionBodyResolver

§

impl Freeze for ArchivedCompileModuleInfo

§

impl Freeze for CompileModuleInfo

§

impl Freeze for CompileModuleInfoResolver

§

impl Freeze for ArchivedRelocation

§

impl Freeze for Relocation

§

impl Freeze for RelocationResolver

§

impl Freeze for ArchivedCustomSection

§

impl Freeze for ArchivedSectionBody

§

impl Freeze for CustomSection

§

impl Freeze for CustomSectionResolver

§

impl Freeze for SectionBody

§

impl Freeze for SectionBodyResolver

§

impl Freeze for SectionIndex

§

impl Freeze for SectionIndexResolver

§

impl Freeze for ArchivedModuleMetadata

§

impl Freeze for ModuleMetadata

§

impl Freeze for ModuleMetadataResolver

§

impl Freeze for ModuleMetadataSymbolRegistry

§

impl Freeze for Target

§

impl Freeze for MiddlewareError

§

impl Freeze for ArchivedDataInitializerLocation

§

impl Freeze for ArchivedOwnedDataInitializer

§

impl Freeze for ArchivedSerializableCompilation

§

impl Freeze for ArchivedSerializableModule

§

impl Freeze for Bytes

§

impl Freeze for CustomSectionIndex

§

impl Freeze for DataIndex

§

impl Freeze for DataInitializerLocation

§

impl Freeze for ElemIndex

§

impl Freeze for Features

§

impl Freeze for FrameInfo

§

impl Freeze for FunctionIndex

§

impl Freeze for FunctionType

§

impl Freeze for GlobalIndex

§

impl Freeze for GlobalType

§

impl Freeze for ImportKey

§

impl Freeze for LocalFunctionIndex

§

impl Freeze for LocalGlobalIndex

§

impl Freeze for LocalMemoryIndex

§

impl Freeze for LocalTableIndex

§

impl Freeze for Memory32

§

impl Freeze for Memory64

§

impl Freeze for MemoryIndex

§

impl Freeze for MemoryType

§

impl Freeze for MetadataHeader

§

impl Freeze for ModuleInfo

§

impl Freeze for OwnedDataInitializer

§

impl Freeze for PageCountOutOfRange

§

impl Freeze for Pages

§

impl Freeze for SerializableCompilation

§

impl Freeze for SerializableModule

§

impl Freeze for SignatureIndex

§

impl Freeze for SourceLoc

§

impl Freeze for StoreId

§

impl Freeze for TableIndex

§

impl Freeze for TableInitializer

§

impl Freeze for TableType

§

impl Freeze for TargetSharedSignatureIndex

§

impl Freeze for TrapInformation

§

impl Freeze for Triple

§

impl Freeze for V128

§

impl Freeze for VMBuiltinFunctionIndex

§

impl Freeze for VMOffsets

§

impl Freeze for TypeId

§

impl Freeze for BorrowError

§

impl Freeze for BorrowMutError

§

impl Freeze for Error

§

impl Freeze for DefaultHasher

§

impl Freeze for RandomState

§

impl Freeze for SipHasher

§

impl Freeze for Assume

§

impl Freeze for RangeFull

§

impl Freeze for wasmer_types::lib::std::ptr::Alignment

§

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 PhantomPinned

§

impl Freeze for RawValue

§

impl<'a> Freeze for CompiledFunctionUnwindInfoReference<'a>

§

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

§

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

§

impl<'a> Freeze for EscapeAscii<'a>

§

impl<'a> Freeze for wasmer_types::lib::std::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> 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, V> Freeze for wasmer_types::entity::Iter<'a, K, V>
where K: Eq + PartialEq + Copy + Clone,

§

impl<'a, K, V> Freeze for wasmer_types::entity::IterMut<'a, K, V>
where K: Eq + PartialEq + Copy + Clone,

§

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

§

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

§

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

§

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

§

impl<'a, T> Freeze for wasmer_types::lib::std::slice::Iter<'a, T>

§

impl<'a, T> Freeze for wasmer_types::lib::std::slice::IterMut<'a, T>

§

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

§

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

§

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

§

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

§

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

§

impl<'a, T> Freeze for wasmer_types::lib::std::sync::mpsc::Iter<'a, T>

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

impl<'a, T, A> Freeze for wasmer_types::lib::std::vec::Drain<'a, T, A>

§

impl<'a, T, F, A> Freeze for ExtractIf<'a, T, F, A>
where F: FnOnce(&mut T) + Freeze,

§

impl<'a, T, P> Freeze for ChunkBy<'a, T, P>
where P: Freeze,

§

impl<'a, T, P> Freeze for ChunkByMut<'a, T, P>
where P: Freeze,

§

impl<'a, T, P> Freeze for RSplit<'a, T, P>
where P: FnOnce(&T) + Freeze,

§

impl<'a, T, P> Freeze for RSplitMut<'a, T, P>
where P: FnOnce(&T) + Freeze,

§

impl<'a, T, P> Freeze for RSplitN<'a, T, P>
where P: FnOnce(&T) + Freeze,

§

impl<'a, T, P> Freeze for RSplitNMut<'a, T, P>
where P: FnOnce(&T) + Freeze,

§

impl<'a, T, P> Freeze for Split<'a, T, P>
where P: FnOnce(&T) + Freeze,

§

impl<'a, T, P> Freeze for SplitInclusive<'a, T, P>
where P: FnOnce(&T) + Freeze,

§

impl<'a, T, P> Freeze for SplitInclusiveMut<'a, T, P>
where P: FnOnce(&T) + Freeze,

§

impl<'a, T, P> Freeze for SplitMut<'a, T, P>
where P: FnOnce(&T) + Freeze,

§

impl<'a, T, P> Freeze for SplitN<'a, T, P>
where P: FnOnce(&T) + Freeze,

§

impl<'a, T, P> Freeze for SplitNMut<'a, T, P>
where P: FnOnce(&T) + Freeze,

§

impl<'a, T, const N: usize> Freeze for wasmer_types::lib::std::slice::ArrayChunks<'a, T, N>

§

impl<'a, T, const N: usize> Freeze for ArrayChunksMut<'a, T, N>

§

impl<'a, T, const N: usize> Freeze for ArrayWindows<'a, T, N>

§

impl<'b, T> Freeze for Ref<'b, T>
where T: ?Sized,

§

impl<'b, T> Freeze for RefMut<'b, T>
where T: ?Sized,

§

impl<'data> Freeze for DataInitializer<'data>

§

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<Dyn> Freeze for DynMetadata<Dyn>
where Dyn: ?Sized,

§

impl<F> Freeze for FormatterFn<F>
where F: FnMut(&mut Formatter<'_>) + FnOnce(&mut Formatter<'_>) + 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<H> Freeze for BuildHasherDefault<H>

§

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

§

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

§

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 wasmer_types::lib::std::iter::ArrayChunks<I, N>
where I: Freeze, <I as Iterator>::Item: Freeze,

§

impl<Idx> Freeze for 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 Keys<K>
where K: Eq + PartialEq + Copy + Clone,

§

impl<K, V> !Freeze for ArchivedPrimaryMap<K, V>

§

impl<K, V> Freeze for BoxedSlice<K, V>
where K: Eq + PartialEq + Copy + Clone,

§

impl<K, V> Freeze for PrimaryMap<K, V>
where K: Eq + PartialEq + Copy + Clone,

§

impl<K, V> Freeze for SecondaryMap<K, V>
where K: Eq + PartialEq + Copy + Clone, V: Freeze,

§

impl<T> !Freeze for Cell<T>

§

impl<T> !Freeze for OnceCell<T>

§

impl<T> !Freeze for RefCell<T>

§

impl<T> !Freeze for SyncUnsafeCell<T>

§

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 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 PackedOption<T>
where T: Freeze,

§

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

§

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

§

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

§

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

§

impl<T> Freeze for Empty<T>

§

impl<T> Freeze for wasmer_types::lib::std::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 ManuallyDrop<T>
where T: Freeze + ?Sized,

§

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

§

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

§

impl<T> Freeze for UniqueRc<T>

§

impl<T> Freeze for wasmer_types::lib::std::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 Exclusive<T>
where T: Freeze + ?Sized,

§

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

§

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

§

impl<T, A> Freeze for wasmer_types::lib::std::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 wasmer_types::lib::std::sync::Weak<T, A>
where A: Freeze, T: ?Sized,

§

impl<T, A> Freeze for wasmer_types::lib::std::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 LazyCell<T, F>

§

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

§

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

§

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