Объем

let y = {
    // Anything surrounded with {} is a scope
    3 // a scope can return a value too ---> return explained below
    // All variables inside the scope is deallocated when the scope ends
    let x = 4; // x got deallocated as the scope ends
}

Функция

fn function_name <generics> (arguments) ->…