Trait std::panic::UnwindSafe 1.9.0[−][src]
pub auto trait UnwindSafe { }Expand description
A marker trait which represents “panic safe” types in Rust.
This trait is implemented by default for many types and behaves similarly in
terms of inference of implementation to the Send and Sync traits. The
purpose of this trait is to encode what types are safe to cross a catch_unwind
boundary with no fear of unwind safety.
What is unwind safety?
In Rust a function can “return” early if it either panics or calls a function which transitively panics. This sort of control flow is not always anticipated, and has the possibility of causing subtle bugs through a combination of two critical components:
- A data structure is in a temporarily invalid state when the thread panics.
- This broken invariant is then later observed.
Typically in Rust, it is difficult to perform step (2) because catching a
panic involves either spawning a thread (which in turns makes it difficult
to later witness broken invariants) or using the catch_unwind function in this
module. Additionally, even if an invariant is witnessed, it typically isn’t a
problem in Rust because there are no uninitialized values (like in C or C++).
It is possible, however, for logical invariants to be broken in Rust,
which can end up causing behavioral bugs. Another key aspect of unwind safety
in Rust is that, in the absence of unsafe code, a panic cannot lead to
memory unsafety.
That was a bit of a whirlwind tour of unwind safety, but for more information about unwind safety and how it applies to Rust, see an associated RFC.
What is UnwindSafe?
Now that we’ve got an idea of what unwind safety is in Rust, it’s also
important to understand what this trait represents. As mentioned above, one
way to witness broken invariants is through the catch_unwind function in this
module as it allows catching a panic and then re-using the environment of
the closure.
Simply put, a type T implements UnwindSafe if it cannot easily allow
witnessing a broken invariant through the use of catch_unwind (catching a
panic). This trait is an auto trait, so it is automatically implemented for
many types, and it is also structurally composed (e.g., a struct is unwind
safe if all of its components are unwind safe).
Note, however, that this is not an unsafe trait, so there is not a succinct
contract that this trait is providing. Instead it is intended as more of a
“speed bump” to alert users of catch_unwind that broken invariants may be
witnessed and may need to be accounted for.
Who implements UnwindSafe?
Types such as &mut T and &RefCell<T> are examples which are not
unwind safe. The general idea is that any mutable state which can be shared
across catch_unwind is not unwind safe by default. This is because it is very
easy to witness a broken invariant outside of catch_unwind as the data is
simply accessed as usual.
Types like &Mutex<T>, however, are unwind safe because they implement
poisoning by default. They still allow witnessing a broken invariant, but
they already provide their own “speed bumps” to do so.
When should UnwindSafe be used?
It is not intended that most types or functions need to worry about this trait.
It is only used as a bound on the catch_unwind function and as mentioned
above, the lack of unsafe means it is mostly an advisory. The
AssertUnwindSafe wrapper struct can be used to force this trait to be
implemented for any closed over variables passed to catch_unwind.
Implementations on Foreign Types
impl UnwindSafe for Argumentimpl UnwindSafe for FormatSpecimpl UnwindSafe for Alignmentimpl UnwindSafe for CountImplementors
impl<K, V, S> UnwindSafe for HashMap<K, V, S> where
K: UnwindSafe,
V: UnwindSafe,
S: UnwindSafe, Auto implementors
impl !UnwindSafe for Backtraceimpl !UnwindSafe for std::io::Errorimpl !UnwindSafe for Commandimpl !UnwindSafe for std::sync::Onceimpl UnwindSafe for BacktraceStatusimpl UnwindSafe for std::cmp::Orderingimpl UnwindSafe for TryReserveErrorimpl UnwindSafe for Infallibleimpl UnwindSafe for VarErrorimpl UnwindSafe for c_voidimpl UnwindSafe for std::fmt::Alignmentimpl UnwindSafe for ErrorKindimpl UnwindSafe for SeekFromimpl UnwindSafe for IpAddrimpl UnwindSafe for Ipv6MulticastScopeimpl UnwindSafe for Shutdownimpl UnwindSafe for std::net::SocketAddrimpl UnwindSafe for FpCategoryimpl UnwindSafe for IntErrorKindimpl UnwindSafe for AncillaryErrorimpl UnwindSafe for SearchStepimpl UnwindSafe for std::sync::atomic::Orderingimpl UnwindSafe for RecvTimeoutErrorimpl UnwindSafe for TryRecvErrorimpl UnwindSafe for boolimpl UnwindSafe for charimpl UnwindSafe for f32impl UnwindSafe for f64impl UnwindSafe for i8impl UnwindSafe for i16impl UnwindSafe for i32impl UnwindSafe for i64impl UnwindSafe for i128impl UnwindSafe for isizeimpl UnwindSafe for [u8]impl UnwindSafe for strimpl UnwindSafe for u8impl UnwindSafe for u16impl UnwindSafe for u32impl UnwindSafe for u64impl UnwindSafe for u128impl UnwindSafe for usizeimpl UnwindSafe for AllocErrorimpl UnwindSafe for Globalimpl UnwindSafe for Layoutimpl UnwindSafe for LayoutErrorimpl UnwindSafe for Systemimpl UnwindSafe for TypeIdimpl UnwindSafe for TryFromSliceErrorimpl UnwindSafe for std::ascii::EscapeDefaultimpl UnwindSafe for BacktraceFrameimpl UnwindSafe for BorrowErrorimpl UnwindSafe for BorrowMutErrorimpl UnwindSafe for CharTryFromErrorimpl UnwindSafe for DecodeUtf16Errorimpl UnwindSafe for std::char::EscapeDebugimpl UnwindSafe for std::char::EscapeDefaultimpl UnwindSafe for std::char::EscapeUnicodeimpl UnwindSafe for ParseCharErrorimpl UnwindSafe for ToLowercaseimpl UnwindSafe for ToUppercaseimpl UnwindSafe for DefaultHasherimpl UnwindSafe for RandomStateimpl UnwindSafe for Argsimpl UnwindSafe for ArgsOsimpl UnwindSafe for JoinPathsErrorimpl UnwindSafe for Varsimpl UnwindSafe for VarsOsimpl UnwindSafe for CStrimpl UnwindSafe for CStringimpl UnwindSafe for FromBytesWithNulErrorimpl UnwindSafe for FromVecWithNulErrorimpl UnwindSafe for IntoStringErrorimpl UnwindSafe for NulErrorimpl UnwindSafe for OsStrimpl UnwindSafe for OsStringimpl UnwindSafe for std::fmt::Errorimpl UnwindSafe for DirBuilderimpl UnwindSafe for DirEntryimpl UnwindSafe for Fileimpl UnwindSafe for FileTypeimpl UnwindSafe for Metadataimpl UnwindSafe for OpenOptionsimpl UnwindSafe for Permissionsimpl UnwindSafe for ReadDirimpl UnwindSafe for SipHasherimpl UnwindSafe for std::io::Emptyimpl UnwindSafe for Initializerimpl UnwindSafe for std::io::Repeatimpl UnwindSafe for Sinkimpl UnwindSafe for Stderrimpl UnwindSafe for Stdinimpl UnwindSafe for Stdoutimpl UnwindSafe for PhantomPinnedimpl UnwindSafe for AddrParseErrorimpl UnwindSafe for Ipv4Addrimpl UnwindSafe for Ipv6Addrimpl UnwindSafe for SocketAddrV4impl UnwindSafe for SocketAddrV6impl UnwindSafe for TcpListenerimpl UnwindSafe for TcpStreamimpl UnwindSafe for UdpSocketimpl UnwindSafe for NonZeroI8impl UnwindSafe for NonZeroI16impl UnwindSafe for NonZeroI32impl UnwindSafe for NonZeroI64impl UnwindSafe for NonZeroI128impl UnwindSafe for NonZeroIsizeimpl UnwindSafe for NonZeroU8impl UnwindSafe for NonZeroU16impl UnwindSafe for NonZeroU32impl UnwindSafe for NonZeroU64impl UnwindSafe for NonZeroU128impl UnwindSafe for NonZeroUsizeimpl UnwindSafe for ParseFloatErrorimpl UnwindSafe for ParseIntErrorimpl UnwindSafe for TryFromIntErrorimpl UnwindSafe for RangeFullimpl UnwindSafe for statimpl UnwindSafe for std::os::unix::net::SocketAddrimpl UnwindSafe for SocketCredimpl UnwindSafe for UCredimpl UnwindSafe for UnixDatagramimpl UnwindSafe for UnixListenerimpl UnwindSafe for UnixStreamimpl UnwindSafe for Pathimpl UnwindSafe for PathBufimpl UnwindSafe for StripPrefixErrorimpl UnwindSafe for Childimpl UnwindSafe for ChildStderrimpl UnwindSafe for ChildStdinimpl UnwindSafe for ChildStdoutimpl UnwindSafe for ExitCodeimpl UnwindSafe for ExitStatusimpl UnwindSafe for ExitStatusErrorimpl UnwindSafe for Outputimpl UnwindSafe for Stdioimpl UnwindSafe for TraitObjectimpl UnwindSafe for ParseBoolErrorimpl UnwindSafe for Utf8Errorimpl UnwindSafe for FromUtf8Errorimpl UnwindSafe for FromUtf16Errorimpl UnwindSafe for Stringimpl UnwindSafe for AtomicBoolimpl UnwindSafe for AtomicI8impl UnwindSafe for AtomicI16impl UnwindSafe for AtomicI32impl UnwindSafe for AtomicI64impl UnwindSafe for AtomicIsizeimpl UnwindSafe for AtomicU8impl UnwindSafe for AtomicU16impl UnwindSafe for AtomicU32impl UnwindSafe for AtomicU64impl UnwindSafe for AtomicUsizeimpl UnwindSafe for RecvErrorimpl UnwindSafe for Barrierimpl UnwindSafe for BarrierWaitResultimpl UnwindSafe for Condvarimpl UnwindSafe for OnceStateimpl UnwindSafe for WaitTimeoutResultimpl UnwindSafe for RawWakerimpl UnwindSafe for RawWakerVTableimpl UnwindSafe for Wakerimpl UnwindSafe for AccessErrorimpl UnwindSafe for Builderimpl UnwindSafe for Threadimpl UnwindSafe for ThreadIdimpl UnwindSafe for Durationimpl UnwindSafe for Instantimpl UnwindSafe for SystemTimeimpl UnwindSafe for SystemTimeErrorimpl<'a> !UnwindSafe for std::error::Chain<'a>impl<'a> !UnwindSafe for Arguments<'a>impl<'a> !UnwindSafe for Formatter<'a>impl<'a> !UnwindSafe for IoSliceMut<'a>impl<'a> !UnwindSafe for SocketAncillary<'a>impl<'a> !UnwindSafe for PanicInfo<'a>impl<'a> UnwindSafe for AncillaryData<'a>impl<'a> UnwindSafe for Component<'a>impl<'a> UnwindSafe for Prefix<'a>impl<'a> UnwindSafe for SplitPaths<'a>impl<'a> UnwindSafe for IoSlice<'a>impl<'a> UnwindSafe for StderrLock<'a>impl<'a> UnwindSafe for StdinLock<'a>impl<'a> UnwindSafe for StdoutLock<'a>impl<'a> UnwindSafe for std::net::Incoming<'a>impl<'a> UnwindSafe for std::os::unix::net::Incoming<'a>impl<'a> UnwindSafe for Messages<'a>impl<'a> UnwindSafe for ScmCredentials<'a>impl<'a> UnwindSafe for ScmRights<'a>impl<'a> UnwindSafe for EncodeWide<'a>impl<'a> UnwindSafe for Ancestors<'a>impl<'a> UnwindSafe for Components<'a>impl<'a> UnwindSafe for Display<'a>impl<'a> UnwindSafe for std::path::Iter<'a>impl<'a> UnwindSafe for PrefixComponent<'a>impl<'a> UnwindSafe for CommandArgs<'a>impl<'a> UnwindSafe for CommandEnvs<'a>impl<'a> UnwindSafe for CharSearcher<'a>impl<'a> UnwindSafe for std::str::Bytes<'a>impl<'a> UnwindSafe for CharIndices<'a>impl<'a> UnwindSafe for Chars<'a>impl<'a> UnwindSafe for EncodeUtf16<'a>impl<'a> UnwindSafe for std::str::EscapeDebug<'a>impl<'a> UnwindSafe for std::str::EscapeDefault<'a>impl<'a> UnwindSafe for std::str::EscapeUnicode<'a>impl<'a> UnwindSafe for std::str::Lines<'a>impl<'a> UnwindSafe for LinesAny<'a>impl<'a> UnwindSafe for SplitAsciiWhitespace<'a>impl<'a> UnwindSafe for SplitWhitespace<'a>impl<'a> UnwindSafe for std::string::Drain<'a>impl<'a> UnwindSafe for Context<'a>impl<'a> UnwindSafe for Location<'a>impl<'a, 'b> !UnwindSafe for DebugList<'a, 'b>impl<'a, 'b> !UnwindSafe for DebugMap<'a, 'b>impl<'a, 'b> !UnwindSafe for DebugSet<'a, 'b>impl<'a, 'b> !UnwindSafe for DebugStruct<'a, 'b>impl<'a, 'b> !UnwindSafe for DebugTuple<'a, 'b>impl<'a, 'b> UnwindSafe for CharSliceSearcher<'a, 'b>impl<'a, 'b> UnwindSafe for StrSearcher<'a, 'b>impl<'a, 'f> !UnwindSafe for VaList<'a, 'f>impl<'a, A> !UnwindSafe for std::option::IterMut<'a, A>impl<'a, A> UnwindSafe for std::option::Iter<'a, A> where
A: RefUnwindSafe, impl<'a, B: ?Sized> UnwindSafe for Cow<'a, B> where
B: RefUnwindSafe,
<B as ToOwned>::Owned: UnwindSafe, impl<'a, F> UnwindSafe for CharPredicateSearcher<'a, F> where
F: UnwindSafe, impl<'a, I, A> UnwindSafe for Splice<'a, I, A> where
A: RefUnwindSafe,
I: UnwindSafe,
<I as Iterator>::Item: RefUnwindSafe, impl<'a, K> UnwindSafe for std::collections::hash_set::Drain<'a, K> where
K: RefUnwindSafe + UnwindSafe, impl<'a, K> UnwindSafe for std::collections::hash_set::Iter<'a, K> where
K: RefUnwindSafe, impl<'a, K, F> !UnwindSafe for std::collections::hash_set::DrainFilter<'a, K, F>impl<'a, K, V> !UnwindSafe for std::collections::btree_map::Entry<'a, K, V>impl<'a, K, V> !UnwindSafe for std::collections::hash_map::Entry<'a, K, V>impl<'a, K, V> !UnwindSafe for std::collections::btree_map::IterMut<'a, K, V>impl<'a, K, V> !UnwindSafe for std::collections::btree_map::OccupiedEntry<'a, K, V>impl<'a, K, V> !UnwindSafe for std::collections::btree_map::OccupiedError<'a, K, V>impl<'a, K, V> !UnwindSafe for RangeMut<'a, K, V>impl<'a, K, V> !UnwindSafe for std::collections::btree_map::VacantEntry<'a, K, V>impl<'a, K, V> !UnwindSafe for std::collections::btree_map::ValuesMut<'a, K, V>impl<'a, K, V> !UnwindSafe for std::collections::hash_map::IterMut<'a, K, V>impl<'a, K, V> !UnwindSafe for std::collections::hash_map::OccupiedEntry<'a, K, V>impl<'a, K, V> !UnwindSafe for std::collections::hash_map::OccupiedError<'a, K, V>impl<'a, K, V> !UnwindSafe for std::collections::hash_map::VacantEntry<'a, K, V>impl<'a, K, V> !UnwindSafe for std::collections::hash_map::ValuesMut<'a, K, V>impl<'a, K, V> UnwindSafe for std::collections::btree_map::Iter<'a, K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe, impl<'a, K, V> UnwindSafe for std::collections::btree_map::Keys<'a, K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe, impl<'a, K, V> UnwindSafe for std::collections::btree_map::Range<'a, K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe, impl<'a, K, V> UnwindSafe for std::collections::btree_map::Values<'a, K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe, impl<'a, K, V> UnwindSafe for std::collections::hash_map::Drain<'a, K, V> where
K: RefUnwindSafe + UnwindSafe,
V: RefUnwindSafe + UnwindSafe, impl<'a, K, V> UnwindSafe for std::collections::hash_map::Iter<'a, K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe, impl<'a, K, V> UnwindSafe for std::collections::hash_map::Keys<'a, K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe, impl<'a, K, V> UnwindSafe for std::collections::hash_map::Values<'a, K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe, impl<'a, K, V, F> !UnwindSafe for std::collections::btree_map::DrainFilter<'a, K, V, F>impl<'a, K, V, F> !UnwindSafe for std::collections::hash_map::DrainFilter<'a, K, V, F>impl<'a, K, V, S> !UnwindSafe for RawEntryMut<'a, K, V, S>impl<'a, K, V, S> !UnwindSafe for RawEntryBuilderMut<'a, K, V, S>impl<'a, K, V, S> !UnwindSafe for RawOccupiedEntryMut<'a, K, V, S>impl<'a, K, V, S> !UnwindSafe for RawVacantEntryMut<'a, K, V, S>impl<'a, K, V, S> UnwindSafe for RawEntryBuilder<'a, K, V, S> where
K: RefUnwindSafe,
S: RefUnwindSafe,
V: RefUnwindSafe, impl<'a, P> UnwindSafe for MatchIndices<'a, P> where
<P as Pattern<'a>>::Searcher: UnwindSafe, impl<'a, P> UnwindSafe for Matches<'a, P> where
<P as Pattern<'a>>::Searcher: UnwindSafe, impl<'a, P> UnwindSafe for RMatchIndices<'a, P> where
<P as Pattern<'a>>::Searcher: UnwindSafe, impl<'a, P> UnwindSafe for RMatches<'a, P> where
<P as Pattern<'a>>::Searcher: UnwindSafe, impl<'a, P> UnwindSafe for std::str::RSplit<'a, P> where
<P as Pattern<'a>>::Searcher: UnwindSafe, impl<'a, P> UnwindSafe for std::str::RSplitN<'a, P> where
<P as Pattern<'a>>::Searcher: UnwindSafe, impl<'a, P> UnwindSafe for RSplitTerminator<'a, P> where
<P as Pattern<'a>>::Searcher: UnwindSafe, impl<'a, P> UnwindSafe for std::str::Split<'a, P> where
<P as Pattern<'a>>::Searcher: UnwindSafe, impl<'a, P> UnwindSafe for SplitInclusive<'a, P> where
<P as Pattern<'a>>::Searcher: UnwindSafe, impl<'a, P> UnwindSafe for std::str::SplitN<'a, P> where
<P as Pattern<'a>>::Searcher: UnwindSafe, impl<'a, P> UnwindSafe for SplitTerminator<'a, P> where
<P as Pattern<'a>>::Searcher: UnwindSafe, impl<'a, T> !UnwindSafe for DrainSorted<'a, T>impl<'a, T> !UnwindSafe for PeekMut<'a, T>impl<'a, T> !UnwindSafe for CursorMut<'a, T>impl<'a, T> !UnwindSafe for std::collections::linked_list::IterMut<'a, T>impl<'a, T> !UnwindSafe for std::collections::vec_deque::IterMut<'a, T>impl<'a, T> !UnwindSafe for std::result::IterMut<'a, T>impl<'a, T> !UnwindSafe for ChunksExactMut<'a, T>impl<'a, T> !UnwindSafe for ChunksMut<'a, T>impl<'a, T> !UnwindSafe for std::slice::IterMut<'a, T>impl<'a, T> !UnwindSafe for RChunksExactMut<'a, T>impl<'a, T> !UnwindSafe for RChunksMut<'a, T>impl<'a, T> !UnwindSafe for std::sync::mpsc::Iter<'a, T>impl<'a, T> !UnwindSafe for TryIter<'a, T>impl<'a, T> UnwindSafe for std::collections::binary_heap::Drain<'a, T> where
T: RefUnwindSafe, impl<'a, T> UnwindSafe for std::collections::binary_heap::Iter<'a, T> where
T: RefUnwindSafe, impl<'a, T> UnwindSafe for std::collections::btree_set::Difference<'a, T> where
T: RefUnwindSafe, impl<'a, T> UnwindSafe for std::collections::btree_set::Intersection<'a, T> where
T: RefUnwindSafe, impl<'a, T> UnwindSafe for std::collections::btree_set::Iter<'a, T> where
T: RefUnwindSafe, impl<'a, T> UnwindSafe for std::collections::btree_set::Range<'a, T> where
T: RefUnwindSafe, impl<'a, T> UnwindSafe for std::collections::btree_set::SymmetricDifference<'a, T> where
T: RefUnwindSafe, impl<'a, T> UnwindSafe for std::collections::btree_set::Union<'a, T> where
T: RefUnwindSafe, impl<'a, T> UnwindSafe for std::collections::linked_list::Cursor<'a, T> where
T: RefUnwindSafe, impl<'a, T> UnwindSafe for std::collections::linked_list::Iter<'a, T> where
T: RefUnwindSafe, impl<'a, T> UnwindSafe for std::collections::vec_deque::Drain<'a, T> where
T: RefUnwindSafe, impl<'a, T> UnwindSafe for std::collections::vec_deque::Iter<'a, T> where
T: RefUnwindSafe, impl<'a, T> UnwindSafe for std::result::Iter<'a, T> where
T: RefUnwindSafe, impl<'a, T> UnwindSafe for Chunks<'a, T> where
T: RefUnwindSafe, impl<'a, T> UnwindSafe for ChunksExact<'a, T> where
T: RefUnwindSafe, impl<'a, T> UnwindSafe for std::slice::Iter<'a, T> where
T: RefUnwindSafe, impl<'a, T> UnwindSafe for RChunks<'a, T> where
T: RefUnwindSafe, impl<'a, T> UnwindSafe for RChunksExact<'a, T> where
T: RefUnwindSafe, impl<'a, T> UnwindSafe for Windows<'a, T> where
T: RefUnwindSafe, impl<'a, T, A> UnwindSafe for std::vec::Drain<'a, T, A> where
A: RefUnwindSafe,
T: RefUnwindSafe, impl<'a, T, F> !UnwindSafe for std::collections::btree_set::DrainFilter<'a, T, F>impl<'a, T, F> !UnwindSafe for std::collections::linked_list::DrainFilter<'a, T, F>impl<'a, T, F, A = Global> !UnwindSafe for std::vec::DrainFilter<'a, T, F, A>impl<'a, T, P> !UnwindSafe for GroupByMut<'a, T, P>impl<'a, T, P> !UnwindSafe for RSplitMut<'a, T, P>impl<'a, T, P> !UnwindSafe for RSplitNMut<'a, T, P>impl<'a, T, P> !UnwindSafe for SplitMut<'a, T, P>impl<'a, T, P> !UnwindSafe for SplitNMut<'a, T, P>impl<'a, T, P> UnwindSafe for GroupBy<'a, T, P> where
P: UnwindSafe,
T: RefUnwindSafe, impl<'a, T, P> UnwindSafe for std::slice::RSplit<'a, T, P> where
P: UnwindSafe,
T: RefUnwindSafe, impl<'a, T, P> UnwindSafe for std::slice::RSplitN<'a, T, P> where
P: UnwindSafe,
T: RefUnwindSafe, impl<'a, T, P> UnwindSafe for std::slice::Split<'a, T, P> where
P: UnwindSafe,
T: RefUnwindSafe, impl<'a, T, P> UnwindSafe for std::slice::SplitN<'a, T, P> where
P: UnwindSafe,
T: RefUnwindSafe, impl<'a, T, S> UnwindSafe for std::collections::hash_set::Difference<'a, T, S> where
S: RefUnwindSafe,
T: RefUnwindSafe, impl<'a, T, S> UnwindSafe for std::collections::hash_set::Intersection<'a, T, S> where
S: RefUnwindSafe,
T: RefUnwindSafe, impl<'a, T, S> UnwindSafe for std::collections::hash_set::SymmetricDifference<'a, T, S> where
S: RefUnwindSafe,
T: RefUnwindSafe, impl<'a, T, S> UnwindSafe for std::collections::hash_set::Union<'a, T, S> where
S: RefUnwindSafe,
T: RefUnwindSafe, impl<'a, T, const N: usize> !UnwindSafe for ArrayChunksMut<'a, T, N>impl<'a, T, const N: usize> UnwindSafe for ArrayChunks<'a, T, N> where
T: RefUnwindSafe, impl<'a, T, const N: usize> UnwindSafe for ArrayWindows<'a, T, N> where
T: RefUnwindSafe, impl<'a, T: ?Sized> UnwindSafe for MutexGuard<'a, T>impl<'a, T: ?Sized> UnwindSafe for RwLockReadGuard<'a, T>impl<'a, T: ?Sized> UnwindSafe for RwLockWriteGuard<'a, T>impl<'b, T> !UnwindSafe for Ref<'b, T>impl<'b, T> !UnwindSafe for RefMut<'b, T>impl<'f> !UnwindSafe for VaListImpl<'f>impl<A> UnwindSafe for std::iter::Repeat<A> where
A: UnwindSafe, impl<A> UnwindSafe for std::option::IntoIter<A> where
A: UnwindSafe, impl<A, B> UnwindSafe for std::iter::Chain<A, B> where
A: UnwindSafe,
B: UnwindSafe, impl<A, B> UnwindSafe for Zip<A, B> where
A: UnwindSafe,
B: UnwindSafe, impl<B> UnwindSafe for std::io::Lines<B> where
B: UnwindSafe, impl<B> UnwindSafe for std::io::Split<B> where
B: UnwindSafe, impl<B, C> UnwindSafe for ControlFlow<B, C> where
B: UnwindSafe,
C: UnwindSafe, impl<Dyn: ?Sized> UnwindSafe for DynMetadata<Dyn> where
Dyn: UnwindSafe, impl<F> UnwindSafe for PollFn<F> where
F: UnwindSafe, impl<F> UnwindSafe for FromFn<F> where
F: UnwindSafe, impl<F> UnwindSafe for OnceWith<F> where
F: UnwindSafe, impl<F> UnwindSafe for RepeatWith<F> where
F: UnwindSafe, impl<H> UnwindSafe for BuildHasherDefault<H> where
H: UnwindSafe, impl<I> UnwindSafe for DecodeUtf16<I> where
I: UnwindSafe, impl<I> UnwindSafe for Cloned<I> where
I: UnwindSafe, impl<I> UnwindSafe for Copied<I> where
I: UnwindSafe, impl<I> UnwindSafe for Cycle<I> where
I: UnwindSafe, impl<I> UnwindSafe for Enumerate<I> where
I: UnwindSafe, impl<I> UnwindSafe for Flatten<I> where
I: UnwindSafe,
<<I as Iterator>::Item as IntoIterator>::IntoIter: UnwindSafe, impl<I> UnwindSafe for Fuse<I> where
I: UnwindSafe, impl<I> UnwindSafe for Intersperse<I> where
I: UnwindSafe,
<I as Iterator>::Item: UnwindSafe, impl<I> UnwindSafe for Peekable<I> where
I: UnwindSafe,
<I as Iterator>::Item: UnwindSafe, impl<I> UnwindSafe for Skip<I> where
I: UnwindSafe, impl<I> UnwindSafe for StepBy<I> where
I: UnwindSafe, impl<I> UnwindSafe for std::iter::Take<I> where
I: UnwindSafe, impl<I, F> UnwindSafe for FilterMap<I, F> where
F: UnwindSafe,
I: UnwindSafe, impl<I, F> UnwindSafe for Inspect<I, F> where
F: UnwindSafe,
I: UnwindSafe, impl<I, F> UnwindSafe for Map<I, F> where
F: UnwindSafe,
I: UnwindSafe, impl<I, G> UnwindSafe for IntersperseWith<I, G> where
G: UnwindSafe,
I: UnwindSafe,
<I as Iterator>::Item: UnwindSafe, impl<I, P> UnwindSafe for Filter<I, P> where
I: UnwindSafe,
P: UnwindSafe, impl<I, P> UnwindSafe for MapWhile<I, P> where
I: UnwindSafe,
P: UnwindSafe, impl<I, P> UnwindSafe for SkipWhile<I, P> where
I: UnwindSafe,
P: UnwindSafe, impl<I, P> UnwindSafe for TakeWhile<I, P> where
I: UnwindSafe,
P: UnwindSafe, impl<I, St, F> UnwindSafe for Scan<I, St, F> where
F: UnwindSafe,
I: UnwindSafe,
St: UnwindSafe, impl<I, U, F> UnwindSafe for FlatMap<I, U, F> where
F: UnwindSafe,
I: UnwindSafe,
<U as IntoIterator>::IntoIter: UnwindSafe, impl<Idx> UnwindSafe for std::ops::Range<Idx> where
Idx: UnwindSafe, impl<Idx> UnwindSafe for RangeFrom<Idx> where
Idx: UnwindSafe, impl<Idx> UnwindSafe for RangeInclusive<Idx> where
Idx: UnwindSafe, impl<Idx> UnwindSafe for RangeTo<Idx> where
Idx: UnwindSafe, impl<Idx> UnwindSafe for RangeToInclusive<Idx> where
Idx: UnwindSafe, impl<K> UnwindSafe for std::collections::hash_set::IntoIter<K> where
K: RefUnwindSafe + UnwindSafe, impl<K, V> UnwindSafe for std::collections::btree_map::IntoIter<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe, impl<K, V> UnwindSafe for std::collections::btree_map::IntoKeys<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe, impl<K, V> UnwindSafe for std::collections::btree_map::IntoValues<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe, impl<K, V> UnwindSafe for std::collections::hash_map::IntoIter<K, V> where
K: RefUnwindSafe + UnwindSafe,
V: RefUnwindSafe + UnwindSafe, impl<K, V> UnwindSafe for std::collections::hash_map::IntoKeys<K, V> where
K: RefUnwindSafe + UnwindSafe,
V: RefUnwindSafe + UnwindSafe, impl<K, V> UnwindSafe for std::collections::hash_map::IntoValues<K, V> where
K: RefUnwindSafe + UnwindSafe,
V: RefUnwindSafe + UnwindSafe, impl<K, V> UnwindSafe for BTreeMap<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe, impl<P> UnwindSafe for Pin<P> where
P: UnwindSafe, impl<R> UnwindSafe for BufReader<R> where
R: UnwindSafe, impl<R> UnwindSafe for std::io::Bytes<R> where
R: UnwindSafe, impl<T> !UnwindSafe for std::rc::Weak<T>impl<T> !UnwindSafe for std::sync::mpsc::IntoIter<T>impl<T> !UnwindSafe for Receiver<T>impl<T> !UnwindSafe for Sender<T>impl<T> !UnwindSafe for JoinHandle<T>impl<T> UnwindSafe for Bound<T> where
T: UnwindSafe, impl<T> UnwindSafe for Option<T> where
T: UnwindSafe, impl<T> UnwindSafe for TryLockError<T> where
T: UnwindSafe, impl<T> UnwindSafe for TrySendError<T> where
T: UnwindSafe, impl<T> UnwindSafe for Poll<T> where
T: UnwindSafe, impl<T> UnwindSafe for [T] where
T: UnwindSafe, impl<T> UnwindSafe for Reverse<T> where
T: UnwindSafe, impl<T> UnwindSafe for std::collections::binary_heap::IntoIter<T> where
T: RefUnwindSafe + UnwindSafe, impl<T> UnwindSafe for IntoIterSorted<T> where
T: UnwindSafe, impl<T> UnwindSafe for std::collections::btree_set::IntoIter<T> where
T: RefUnwindSafe, impl<T> UnwindSafe for std::collections::linked_list::IntoIter<T> where
T: RefUnwindSafe + UnwindSafe, impl<T> UnwindSafe for BTreeSet<T> where
T: RefUnwindSafe, impl<T> UnwindSafe for BinaryHeap<T> where
T: UnwindSafe, impl<T> UnwindSafe for LinkedList<T> where
T: RefUnwindSafe + UnwindSafe, impl<T> UnwindSafe for VecDeque<T> where
T: UnwindSafe, impl<T> UnwindSafe for std::collections::vec_deque::IntoIter<T> where
T: UnwindSafe, impl<T> UnwindSafe for Pending<T> where
T: UnwindSafe, impl<T> UnwindSafe for Ready<T> where
T: UnwindSafe, impl<T> UnwindSafe for std::io::Cursor<T> where
T: UnwindSafe, impl<T> UnwindSafe for std::io::Take<T> where
T: UnwindSafe, impl<T> UnwindSafe for std::iter::Empty<T> where
T: UnwindSafe, impl<T> UnwindSafe for std::iter::Once<T> where
T: UnwindSafe, impl<T> UnwindSafe for Rev<T> where
T: UnwindSafe, impl<T> UnwindSafe for OnceCell<T> where
T: UnwindSafe, impl<T> UnwindSafe for Discriminant<T> where
<T as DiscriminantKind>::Discriminant: UnwindSafe, impl<T> UnwindSafe for Wrapping<T> where
T: UnwindSafe, impl<T> UnwindSafe for std::result::IntoIter<T> where
T: UnwindSafe, impl<T> UnwindSafe for AtomicPtr<T> where
T: RefUnwindSafe, impl<T> UnwindSafe for SendError<T> where
T: UnwindSafe, impl<T> UnwindSafe for SyncSender<T>impl<T> UnwindSafe for PoisonError<T> where
T: UnwindSafe, impl<T> UnwindSafe for LocalKey<T>impl<T> UnwindSafe for MaybeUninit<T> where
T: UnwindSafe, impl<T, A> UnwindSafe for std::vec::IntoIter<T, A> where
A: UnwindSafe,
T: RefUnwindSafe + UnwindSafe, impl<T, A> UnwindSafe for Vec<T, A> where
A: UnwindSafe,
T: UnwindSafe, impl<T, E> UnwindSafe for Result<T, E> where
E: UnwindSafe,
T: UnwindSafe, impl<T, F> UnwindSafe for Successors<T, F> where
F: UnwindSafe,
T: UnwindSafe, impl<T, F> UnwindSafe for Lazy<T, F> where
F: UnwindSafe,
T: UnwindSafe, impl<T, S> UnwindSafe for HashSet<T, S> where
S: UnwindSafe,
T: UnwindSafe, impl<T, U> UnwindSafe for std::io::Chain<T, U> where
T: UnwindSafe,
U: UnwindSafe, impl<T, const N: usize> UnwindSafe for [T; N] where
T: UnwindSafe, impl<T, const N: usize> UnwindSafe for std::array::IntoIter<T, N> where
T: UnwindSafe, impl<T: ?Sized> UnwindSafe for Cell<T> where
T: UnwindSafe, impl<T: ?Sized> UnwindSafe for RefCell<T> where
T: UnwindSafe, impl<T: ?Sized> UnwindSafe for UnsafeCell<T> where
T: UnwindSafe, impl<T: ?Sized> UnwindSafe for PhantomData<T> where
T: UnwindSafe, impl<T: ?Sized> UnwindSafe for ManuallyDrop<T> where
T: UnwindSafe, impl<T: ?Sized> UnwindSafe for std::sync::Weak<T> where
T: RefUnwindSafe, impl<T: ?Sized, A> UnwindSafe for Box<T, A> where
A: UnwindSafe,
T: UnwindSafe, impl<W> !UnwindSafe for IntoInnerError<W>impl<W> UnwindSafe for BufWriter<W> where
W: UnwindSafe, impl<W> UnwindSafe for LineWriter<W> where
W: UnwindSafe, impl<Y, R> UnwindSafe for GeneratorState<Y, R> where
R: UnwindSafe,
Y: UnwindSafe,