You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Pointers to unsized types that can be coerced to a pointer to a sized type,
140
+
/// as long as pointee is actually a value of that sized type. This is used for
141
+
/// object safety, to check that a method's receiver type can be coerced from the version where Self is dyn Trait to the version where Self is the erased sized type T that implements Trait.
142
+
///
143
+
/// CoerceSized is implemented for:
144
+
/// - &[T] is CoerceSized<&[T; N]> for any N
145
+
/// - &Trait is CoerceSized<&T> for any T: Trait
146
+
/// - and similarly for &mut T, *const T, *mut T, Box<T>, Rc<T>, Arc<T>
0 commit comments