[Breaking] Change definition of TransparentWrapper
Closed this issue · 2 comments
Soveu commented
Because it does not make sense to implement many TransparentWrapper
s for one struct I suggest changing the definition to
pub unsafe trait TransparentWrapper {
type Wrapped: ?Sized;
fn wrap_ref(s: &Wrapped) -> &Self { ... }
fn wrap_mut(s: &mut Wrapped) -> &mut Self { ... }
}
Lokathor commented
Well, I don't see what advantage that gives though.