-
rust] 유형변경#[repr(C)]코딩Coding/★Rust★기초★Syntax 2022. 4. 22. 09:24728x90
#[repr(C)]
The representation of a type can be changed by applying the repr attribute to it.
러스트 코드에서
이건 C의 Struct야 하고 유형 변경 해주는 뜻 같다. ㅜㅜ
https://doc.rust-lang.org/reference/type-layout.htmlType layout - The Rust Reference
The layout of a type is its size, alignment, and the relative offsets of its fields. For enums, how the discriminant is laid out and interpreted is also part of type layout. Type layout can be changed with each compilation. Instead of trying to document ex
doc.rust-lang.org
반응형'코딩Coding > ★Rust★기초★Syntax' 카테고리의 다른 글
Rust]Interview with Ashley Williams, Rust Foundation Interim Executive Director (0) 2022.04.23 Magnus: High level Ruby bindings for Rust- Reddit (0) 2022.04.22 Generators in Rust, C++20, Go, and More (0) 2022.04.22 Rust❤️⭐️유니코드(UniCode)넣고 그 코드가 사람이 알아볼 수 있는 문자로 출력하는 방법& u8을 string출력 (0) 2022.04.22 rust Std)align_of & size_of (0) 2022.04.22 Rust] Const vs static (0) 2022.04.20 Rust 3D Tutorial)❤️Rust 3D Graphics⭐️In the Browser : 2D Graphics - Doug Milford (0) 2022.04.20 rust에서 타입type_of을 알아보는 방법ex:String의 타입 알아보기 (0) 2022.04.20