Telegram Group & Telegram Channel
~/Desktop
А теперь раст
Подведём итоги.

Да, мы получаем ошибку компиляции. Почему? Связано это с тем, как rust работает с памятью. Память освобождается именно в тот момент, когда у переменной кончается лайфтайм, то есть когда мы выходим из фигурных скобочек. Но чтобы не освобождать память дважды, мы не можем допустить, чтобы две переменные владели объектом. В данном случае мы передаём право на объект переменной x из сигнатуры функции use_x, после выхода из которой объект удаляется.



tg-me.com/usefuldesktop/313
Create:
Last Update:

Подведём итоги.

Да, мы получаем ошибку компиляции. Почему? Связано это с тем, как rust работает с памятью. Память освобождается именно в тот момент, когда у переменной кончается лайфтайм, то есть когда мы выходим из фигурных скобочек. Но чтобы не освобождать память дважды, мы не можем допустить, чтобы две переменные владели объектом. В данном случае мы передаём право на объект переменной x из сигнатуры функции use_x, после выхода из которой объект удаляется.

BY ~/Desktop





Share with your friend now:
tg-me.com/usefuldesktop/313

View MORE
Open in Telegram


~ Desktop Telegram | DID YOU KNOW?

Date: |

How Does Bitcoin Mining Work?

Bitcoin mining is the process of adding new transactions to the Bitcoin blockchain. It’s a tough job. People who choose to mine Bitcoin use a process called proof of work, deploying computers in a race to solve mathematical puzzles that verify transactions.To entice miners to keep racing to solve the puzzles and support the overall system, the Bitcoin code rewards miners with new Bitcoins. “This is how new coins are created” and new transactions are added to the blockchain, says Okoro.

To pay the bills, Mr. Durov is issuing investors $1 billion to $1.5 billion of company debt, with the promise of discounted equity if the company eventually goes public, the people briefed on the plans said. He has also announced plans to start selling ads in public Telegram channels as soon as later this year, as well as offering other premium services for businesses and users.

~ Desktop from hk


Telegram ~/Desktop
FROM USA