코딩Coding/★★Rust★★최신동향★및관련글
-
Referencing parent from child코딩Coding/★★Rust★★최신동향★및관련글 2022. 7. 6. 15:38
Referencing parent from child Hi folks, I am trying to implement a logic similar to the screenshot, which made me rage quit from my room couple times, RC didn't work because it's a borrowed value, same for weak reference https://preview.redd.it/bh4rcg1e5r991.png?width=736&format=png&auto=webp&s=f38f40f00fef0945b428eeffe43b1c49ee372d69 is this possible in Rust without opting to "unsafe"? **edit..
-
rust1.61에선 해결됨 ❤️I found a very fun Rust bug코딩Coding/★★Rust★★최신동향★및관련글 2022. 6. 29. 22:58
I found a very fun Rust bug While investigating an ICE, I found this little bug caused by the same issue. ``` fn hi() -> impl Sized { std::ptr::null::() } fn main() { let b: Box Box> = Box::new(hi); let boxed = b(); let null = *boxed; // SIGSEGV println!("{null:?}"); } ``` It can come in very handy if you ever need a transmute in forbid(unsafe_code) (do not do this).
-
Obscure Rust: reborrowing is a half-baked feature | Reddit코딩Coding/★★Rust★★최신동향★및관련글 2022. 6. 27. 15:42
Obscure Rust: reborrowing is a half-baked feature fn reborrow(r: &'a mut &'b mut T) -> &'a mut T { r } fn mutate(i: &mut u32) -> &mut u32 { *i += 1; i } fn mutate_twice(mut i: &mut u32) -> &mut u32 { mutate(reborrow(&mut i)); mutate(i) } https://www.reddit.com/r/rust/comments/vl1gah/obscure_rust_reborrowing_is_a_halfbaked_feature/?utm_source=share&utm_medium=ios_app&utm_name=iossmf Obscure Rust:..
-
Nine Rules for Elegant Rust Library APIs코딩Coding/★★Rust★★최신동향★및관련글 2022. 6. 26. 19:58
https://users.rust-lang.org/t/nine-rules-for-elegant-rust-library-apis/77208 Nine Rules for Elegant Rust Library APIs Nine Rules for Elegant Rust Library APIs Two months ago, I decided to see if a Rust version of our bioinformatics library could be as nice for users as the Python version. The answer is “yes” but wasn’t easy. This free article lays out what I learned users.rust-lang.org
-
Rust 2024년 Roadmap__Inside Rust Blog❤️Rust Library Team Aspirations코딩Coding/★★Rust★★최신동향★및관련글 2022. 4. 24. 16:14
https://blog.rust-lang.org/inside-rust/2022/04/04/lang-roadmap-2024.html Rust Lang Roadmap for 2024 | Inside Rust Blog Want to follow along with Rust development? Curious how you might get involved? Take a look! blog.rust-lang.org https://blog.rust-lang.org/inside-rust/2022/04/20/libs-aspirations.html Rust Library Team Aspirations | Inside Rust Blog Want to follow along with Rust development? Cu..