Mastodon Feed: Post

Mastodon Feed

jsonstein@masto.deoan.org ("Jeff Sonstein") wrote:

sweet, if I do not get confusilated about which type is which:

"Rust has a special annotation called the Copy trait that we can place on types that are stored on the stack, as integers are... If a type implements the Copy trait, variables that use it do not move, but rather are trivially copied, making them still valid after assignment to another variable."