Variables변수들 are-이다 immutable바꿀 수 없는 by default.기본적으로
변수는variables 기본적으로by default 바꿀(to) change 수way 없다.there's no
💡 im- / un- / in- = not.
Memorize real everyday sentences in Korean and English side by side, ordered by how often their words appear in films, TV and news. Tap any …
🎬 Fifty-eight. Every morning Mina reads a page of Rust documentation. Documentation English has patterns that come up again and again.
Tap any word or chunk to hear it. The small line under each English word is how it actually sounds in Korean letters (linked sounds included); the line over Korean is its sound in Latin letters. ✍️ lets you trace a chunk with your finger or mouse.
Korean docs translate these as 기본적으로, 반환한다, -지 않으면, 참고로.
Korean passive often uses -되다: 해제되다 (is freed), 검사되다 (is checked).
Variables변수들 are-이다 immutable바꿀 수 없는 by default.기본적으로
변수는variables 기본적으로by default 바꿀(to) change 수way 없다.there's no
💡 im- / un- / in- = not.
To change바꾸려면 a value,값 declare선언하다 the variable그 변수 with mut.mut 로
값을a value 바꾸려면to change 변수를the variable mutmut 로with 선언한다.declare
💡 -려면 = in order to (at the start of an instruction).
This이 function함수 returns돌려준다 an error오류 if-면 the file그 파일 does not exist.존재하지 않는다
이this 함수는function 파일이the file 없으면if (it) doesn't exist 오류를an error 돌려준다.returns
Each각 value값 has가진다 exactly정확히 one하나의 owner주인 at a time.한 번에
각each 값은value 한one 번에at a time 정확히exactly 하나의one 주인만only (one) owner 가진다.has
When-할 때 the owner주인 goes out of scope,범위를 벗어나다 the value그 값 is dropped버려진다 and그리고 its memory그 메모리 is freed.해제된다
주인이the owner 범위를the scope 벗어나면when (it) leaves 값은the value 버려지고is dropped, and 그its 메모리는memory 해제된다.is freed
💡 범위 = scope; 해제 = release/free (memory).
The borrow checker빌림 검사기 makes sure확실히 하다(보장하다) references참조 are-이다 always늘 valid.유효한
빌림borrow 검사기는checker 참조가references 늘always 유효하도록so that (they're) valid 보장한다.guarantees
💡 보장하다 = to guarantee, make sure.
Note that주의할 점은 this이 method메서드 panics패닉한다(멈춘다) if-면 the index인덱스 is out of bounds.범위를 벗어나다
참고로note that 이this 메서드는method 인덱스가the index 범위를the range 벗어나면if (it) goes outside 패닉한다.panics
💡 참고로 / 주의 = note that — always read the line that follows.
I나 read읽었다 a whole page한 쪽 전부 today오늘 without-없이 a dictionary.사전
오늘today 사전dictionary 없이without 한one 쪽을page 다all 읽었어.(I) read
Mom엄마 said말했다 she그녀가 read읽었다 the whole chapter장 전체 on ownership.소유권에 관한 I'm impressed.감탄했다
엄마가Mom 소유권ownership 장을chapter 다all 읽었대.says (she) read 대단해.impressive
Breaking these into words gives the wrong meaning. Memorize each line exactly as it is, sound and all.
Posts · 0
No posts yet.