18:47, 2 марта 2026Ценности
Continue reading...
。新收录的资料对此有专业解读
Copy makes it trivially easy to accidentally duplicate a Rust value that is actually a thin handle to a resource, resulting in null pointers. Just make a habit of avoiding it on exported wrappers. This can be a hard muscle memory to break since we usually want Copy wherever possible in normal Rust code.
24% less energy
I know, the idea of an inert table pushing up on a book doesn’t seem very normal. Maybe it’ll help if you realize that gravity doesn’t pull you to Earth’s surface, as people often think—it pulls you to the center of the Earth. The normal force is what keeps you from plunging through the floor. (By the way, “normal” means perpendicular—it’s always perpendicular to the surface.)