I'm definitely getting something wrong here, I know you're better at this stuff than me, but I'm just not getting it. As far as I know, *const T, no matter what T is, should be the same size as *const AnyOtherType.
Comments
Log in with your Bluesky account to leave a comment
yea exactly. the (awful) code in question is in `PtrConst`, which uses `NonNull` under the hood, so it's.. only suited to thin pointers. it's not good, there's not much to understand, I need to figure this stuff out later.
Ah ok. Those types (dyn T and [T] and also str) are not something I'm super familiar with. I know how &dyn Trait, Box, &[T], Box<[T]>, &str and Box work (and I guess you could replace Box with Rc/Arc/etc) but those types without the & or Box are not something that
Comments