Stack
Whenever we hold a value (includes function arguments) we must know its size, so that the stack pointer can be moved properly.
Knowing the size of a value of a type is indicated by the marker trait Sized
.
fn f<T: Sized>(t: T) {}
Whenever we hold a value (includes function arguments) we must know its size, so that the stack pointer can be moved properly.
Knowing the size of a value of a type is indicated by the marker trait Sized
.
fn f<T: Sized>(t: T) {}