| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
- set
- ML
- kotlin
- rust
- Flutter
- Collection
- List
- 크롤러
- 클래스
- Android
- text
- 코틀린
- 웹크롤러
- 플러터
- animation
- 다트
- python
- 콜렉션
- package
- Class
- DART
- import
- textstyle
- crawler
- 함수
- variable
- 파이썬
- pushnamed
- map
- function
- Today
- Total
목록rust (3)
조용한 담장
5. Using Structs to Structure Related Data이 글은 Rust 공식 문서 5장(Using Structs to Structure Related Data)의 내용을 기반으로 빠르게 훑어볼 수 있도록 정리한 요약본입니다.5.1. Defining and Instantiating Structshttps://doc.rust-lang.org/book/ch05-01-defining-structs.html핵심 개념 및 코드 스니핏정의 (Definition): struct 키워드로 필드와 타입을 묶음.struct User { username: String, email: String, active: bool,}인스턴스화 (Instantiation): 정의된 키에 값을 할당 (순..
이 글은 Rust 공식 문서 4장(Understanding Ownership)의 내용을 기반으로 빠르게 훑어볼 수 있도록 정리한 요약본입니다.4. Understanding OwnershipRust가 가비지 컬렉터 없이 메모리 안전성을 보장하는 핵심 메커니즘입니다."누가 메모리를 해제할 책임이 있는가?"를 결정하는 규칙들의 집합입니다.4.1. What Is Ownership?https://doc.rust-lang.org/book/ch04-01-what-is-ownership.htmlThe 3 RulesRust의 각각의 값은 해당 값의 Owner(소유자)라고 불리는 변수가 있다.한 번에 딱 하나의 Owner만 존재할 수 있다.Owner가 스코프 밖으로 벗어나면, 값은 버려진다(Dropped).메모리 동작: ..
3. Rust Common Programming Concepts - Quick Reference이 글은 Rust 공식 문서 3장(Common Programming Concepts)의 내용을 기반으로 빠르게 훑어볼 수 있도록 정리한 요약본입니다.3.1 Variables and Mutabilityhttps://doc.rust-lang.org/book/ch03-01-variables-and-mutability.html핵심 개념기본값: 불변(immutable)가변 변수는 mut 키워드 필요섀도잉(shadowing)으로 타입 변경 가능상수는 const 키워드 사용불변 변수 (기본)fn test_immutable() { let x = 5; println!("x = {}", x); // x = 6; ..