About
This site is intended to contain links and resources for personal use, but may be of interest to others. Reach me at Mastodon
Here's a Rust playground, because why not?
This is a code example from The Rust Programming Language section on Using Structs to Structure Related Data
fn main() { let width1 = 30; let height1 = 50; println!( "The area of the rectangle is {} square pixels.", area(width1, height1) ); } fn area(width: u32, height: u32) -> u32 { width * height }