Quick Overview
This lesson gives a quick overview of the concepts discussed in this course.
Concept | Explanation |
Variable | holds data or reference to data |
Data type | defines the type of value assigned to a variable. It can be primitive, or non-primitive. Primitives includes, integers, floats, character, boolean, array, tuples and string. |
Array | sequence of elements of the same type |
Tuple | sequence of elements of different types |
Operators | tell the compiler to perform specific operations |
Conditional Statements | statements that execute if the associated condition evaluates to true |
Loops | blocks of code that keep on executing until a specific condition become true |
Functions | a reusable piece of code that is used to perform a set of tasks |
Strings | a sequence of character; primitive, i.e., String literal(&str) or non-primitive i.e., String object (String) |
Vector | A resizable array |
Structs | A composite data type which contains definite values called its variants |
Enum | composite data type which contains definite values called its variants |
Trait | define an interface for multiple structs |
Generics | generalize a data type for struct, enum, trait, function, array and collections |
Stack | holds variable having primitive data type (size is known) |
Heap | holds variables having non-primitive data type (size is known) |
Ownership | defines which variable will hold the value, Primitive data type copy their ownership and non-primitive data move their ownership during assignment |
Borrowing | share a variable value or share and mutate a variable value |
Lifetime | defines the scope for which the reference is valid |
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy