코딩Coding/Rust용어
Rust용어] Zero Sized Types (ZSTs)
내인생PLUS
2022. 5. 29. 21:47
728x90
https://doc.rust-lang.org/nomicon/exotic-sizes.html#dynamically-sized-types-dsts
Exotically Sized Types - The Rustonomicon
Most of the time, we expect types to have a statically known and positive size. This isn't always the case in Rust. Rust supports Dynamically Sized Types (DSTs): types without a statically known size or alignment. On the surface, this is a bit nonsensical:
doc.rust-lang.org
반응형