Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This repo contains basics of rust and specifically made for people already experienced in some other language.

Notifications You must be signed in to change notification settings

aayushchugh/rust-basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

6 Commits

Repository files navigation

Time to learn some rust!!

Installation

To install rust, follow the instructions on the official rust website.

Running the code

All rust code is in the src/bin directory. To run the code, use the command cargo run in the root directory of the project.

Each file in the src directory is a separate rust program. To run a specific program, use the command cargo run --bin <filename>.

eg: cargo run --bin variables

Each rust program is wrapped inside a main function. The main function is the entry point of the program.

Naming conventions

Convention Types that use it
snake_case Crates, modules, functions, methods, local variables and parameters, lifetimes.
CamelCase Types (including traits and enums), type parameters in generics.
SCREAMING_SNAKE_CASE Constant and static variables.

Order of learning

  1. Variables
  2. Data types
  3. Input and output
  4. Ownership
  5. Borrowing

About

This repo contains basics of rust and specifically made for people already experienced in some other language.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /