Jacob Lindahl ☕
banner
geeklaunch.io
Jacob Lindahl ☕
@geeklaunch.io
ガーガーガー
July 22, 2023 at 5:31 AM
In Rust, you can use std::mem::transmute to statically assert that two types have the same size at compile time.

More details: https://geeklaunch.io/blog/rust-pro-tips-collection/#static-type-size-assertion
July 18, 2023 at 12:07 PM
韓国で小鳥を見つけたわ!
June 5, 2023 at 2:33 PM
grammar for when you have NO japanese skill
May 30, 2023 at 6:34 PM
Image didn't load lmao
May 7, 2023 at 4:16 AM
Hawaii volcanoes national park
May 7, 2023 at 4:16 AM
@bsky.app please make pressing this button focus the search bar if you're already on the search page.
May 7, 2023 at 4:04 AM
#RustProTip

Use impl for generic monomorphization, dyn for dynamic dispatch.

In the generated assembly, with_impl is generated once for each parameterization. with_dyn is generated once, but a vtable is required at runtime.

#rust #rustlang #programming
May 6, 2023 at 1:00 PM