reference
                                
                                 reference copied to clipboard
                                
                                    reference copied to clipboard
                            
                            
                            
                        Document all interesting/relevant zero cost abstractions
I've been trying to research what zero cost abstractions Rust uses and I cannot find any meaningful info on anything other than iterators and generics. I've checked the main Rust repository, the Rust book and its repository, the reference and its repository, and even third party articles about Rust. I might just be stupid but there seems to be little if any concrete information on what is and is not zero cost
I think it would be very worthwhile to have a comprehensive list of (at least the interesting) zero cost abstractions (as well as when they don't apply) both to satisfy curiosity and to reassure people who come from languages where abstractions are punished