File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 8989//! &mut DataStructure<Aliased<T, D2>>
9090//! ```
9191//!
92- //! That cast is unsafe, and rightly so! While it is _likely that the cast is safe, that is far
92+ //! That cast is unsafe, and rightly so! While it is _likely_ that the cast is safe, that is far
9393//! from obvious, and it's worth spending some time on why, since it has implications for how you
9494//! use `Aliased` in your own crate.
9595//!
113113//! wrapper around one type and that same wrapper around a different type with the same layout! You
114114//! can see this discussed in far more detail here if you're curious:
115115//!
116- //! https://github.com/jonhoo/rust-evmap/pull/83#issuecomment-735504638
116+ //! < https://github.com/jonhoo/rust-evmap/pull/83#issuecomment-735504638>
117117//!
118118//! Now, if we can find a way to _guarantee_ that the types have the same layout, this problem
119119//! changes, but how might we go about this? Our saving grace is that we are casting between
You can’t perform that action at this time.
0 commit comments