Skip to content

Instantly share code, notes, and snippets.

@henryobiaraije
Created February 9, 2023 21:59
Show Gist options
  • Save henryobiaraije/1e30295f7dfdf4ccf725fe31adff80d0 to your computer and use it in GitHub Desktop.
Save henryobiaraije/1e30295f7dfdf4ccf725fe31adff80d0 to your computer and use it in GitHub Desktop.
Naming conventions in Rust language
fn main() {}
fn get_product(
) {
let product_id = 42;
}
macro_rules! print_rating {
() => {
println!("Rating 5 stars");
};
}
struct SimpleProduct {}
type ProductPrice = f64;
trait ProductKind {}
const DAYS_OF_THE_WEEK: i32 = 7;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment