Section 1

Preview this deck

strings

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (33)

Section 1

(33 cards)

strings

Front

a sequence of unicode scalar values encoded as a stream of utf-8 bytes

Back

functions

Front

pervasive in Rust code

Back

snake_case_style

Front

case style for function and and variable names

Back

having a number of compile-time safety checks while eliminating all data races

Front

rust improvces on current languages by:

Back

traits

Front

trait Keyword tells about functionality a particular type has and can share with other types

Back

function bodies

Front

a series of statements optionally ending in an expression

Back

if statement while and loop for loop match statement

Front

control flow

Back

arrays

Front

most basic list type to represent a sequence of things

Back

arithmetic operators, bitwise operators, logical operators

Front

Types of Operators:

Back

Through a system of ownership with a set of rules that the compiler checks at compile time.

Front

How does rust approach computer memory usage?

Back

arithmetic

Front

+ - * /

Back

return values of functions

Front

declared by an arrow ( -> )

Back

ownership

Front

Rust's most unique and central feature; enables Rust to make memory safety guarantees

Back

vectors

Front

a dynamic or 'growable' array

Back

methods

Front

fn Keyword defined within the context of a struct first parameter is always self defined within an impl block

Back

i8, i16, i32, i64, u8, u16, u32, u64, isize, usize, f32, f64

Front

numeric types:

Back

systems programming language

Front

rust is what type of programming language?

Back

arrays, vectors, slices, strings

Front

data structures

Back

closures

Front

anonymous functions you can save in a variable parameters are |inside a pair of vertical pipes|

Back

slices

Front

a reference to another datastruct allows safe, efficient access to a portion of an array without copying have defined length mutable or immutable

Back

booleans, char, numeric types

Front

core data types

Back

expressions

Front

evaluate to a resultive value; make up most of our code

Back

logical

Front

< > <= >= ==

Back

type inference

Front

doesn't require you to declare the type of the variable

Back

&str

Front

string slices (fixed size, immutable)

Back

embedding in other languages, programs with specific space and time requirements, writing low level code

Front

Use cases Rust is good at while others aren't:

Back

fn

Front

function keyword

Back

safety, speed, concurrency

Front

three goals of rust

Back

statements

Front

instructions that perform some action; do not return a value

Back

String

Front

heap-allocated string

Back

zero-cost abstractions

Front

Rust aims to achieve ______

Back

function parameters

Front

special variables that are a part of a function's signature can be provided with concrete values (or arguments)

Back

bitwise

Front

| & ^ ! << >>

Back