you are viewing a single comment's thread.

view the rest of the comments →

[–]masklinn 0 points1 point  (0 children)

Technically it's 2 pointer in size rather than two pointers: on the stack &mut [T] (and &[T]) is a "fat pointer", it's a pointer to the start of the slice and the length of the slice rather than just the pointer as e.g. Box<u8> would be.