-
Rust용어)Non-lexical lifetimes코딩Coding/Rust용어 2020. 9. 20. 10:15728x90
https://doc.rust-lang.org/edition-guide/rust-2018/ownership-and-lifetimes/non-lexical-lifetimes.html
Non-lexical lifetimes - The Edition Guide
for 2018 edition for 2015 edition The borrow checker has been enhanced to accept more code, via a mechanism called "non-lexical lifetimes." Consider this example: fn main() { let mut x = 5; let y = &x; let z = &mut x; } In older Rust, this is a compile-tim
doc.rust-lang.org
https://stackoverflow.com/questions/50251487/what-are-non-lexical-lifetimesWhat are non-lexical lifetimes?
Rust has an RFC related to non-lexical lifetimes which has been approved to be implemented in the language for a long time. Recently, Rust's support of this feature has improved a lot and is consid...
stackoverflow.com
반응형'코딩Coding > Rust용어' 카테고리의 다른 글
binding(바인딩) (0) 2020.10.03 Rust용어_New module system/Module / Crate (0) 2020.09.20 Rust용어_impl Trait for returning complex type with ease. (0) 2020.09.20 Rust용어_dyn Trait for trait objects- The Edition Guide (0) 2020.09.20 Rust용어)Default match binding (0) 2020.09.20 (Rust용어) inference 추론처리 (0) 2020.09.20 (Rust용어)More Lifetime Elision (0) 2020.09.20 증분 컴파일러(incremental compiler) (0) 2020.09.20