miniblog.
← Back to all posts
Wilfred Hughes
Jan 9, 2023 at 05:50
Today I learnt that Cell<T> has the size of a pointer (i.e. probably 64 bits) in Rust, regardless of the size of T. It's a common pattern for making struct fields mutable, but the T isn't actually stored inside the struct.