Created
February 9, 2023 21:59
-
-
Save henryobiaraije/1e30295f7dfdf4ccf725fe31adff80d0 to your computer and use it in GitHub Desktop.
Naming conventions in Rust language
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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