Focus mode

Rust Fundamentals

Fundamental Types:String & Str and Tuples

Unlike other languages, Rust has 2 different string structures: String & Str

A string is a vector of data type u8 and it shows all vector properties while str is just a string expression. We will explain this in detail in the Slice section.

A tuple is a generic means of putting together a number of items of various kinds into one composite type. Tuples have a defined length: once stated, they cannot expand or diminish in size.

left-disk

Programs to Accelerate Your Progress in a Software Career

Join our 4-8 month intensive Patika+ bootcamps, start with the fundamentals and gain comprehensive knowledge to kickstart your software career!

right-cube

Test

Comments

You need to enroll in the course to be able to comment!