We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
#[derive(Debug)] Adding the ability to print with println! macro on data structures like enums, HashMaps, and Vectors.
#[derive(Debug)]
trait debug documentation
#[derive(Debug)] enum Command { Add {name: String, department: String}, Get, GetByDepartment(String), }
Now we can print with println!
println!("{:?}", our_enum);
eprintln!("this will go to standard out");
documentation