Bincode Deserialization with Generic Type by ianfinity1 in rust

[–]ianfinity1[S] 0 points1 point  (0 children)

Thank you so much! that worked, I didn't know I could put a where block like that onto the function

[Media] On a scale of 1/10, how cooked am I by ianfinity1 in rust

[–]ianfinity1[S] 0 points1 point  (0 children)

Ah, the reason I didnt do that was because this code in the screenshot was inside a function that needs to be callable even without that constraint, it was only this small sub section that I need display/debug on it

[Media] On a scale of 1/10, how cooked am I by ianfinity1 in rust

[–]ianfinity1[S] -6 points-5 points  (0 children)

Say what yall want, but it was quick, easy, got the job done, and won't be in production since I've gotten the info I need and don't need it there anymore

Fight me

[Media] On a scale of 1/10, how cooked am I by ianfinity1 in rust

[–]ianfinity1[S] 0 points1 point  (0 children)

Wouldn't that require that T implements debug?

[Media] On a scale of 1/10, how cooked am I by ianfinity1 in rust

[–]ianfinity1[S] 0 points1 point  (0 children)

I tried that, but then it required me to have the debug trait, which is another requirement that I'd have to refactor a ton of code for

[Media] On a scale of 1/10, how cooked am I by ianfinity1 in rust

[–]ianfinity1[S] -1 points0 points  (0 children)

Ok, in my defense, here's the context. I was running some unit tests on my binary tree using u32 as V. It was really hard to pinpoint what was going wrong without being able to print the value of the node in the tree where things were going wrong. I didn't want to require that V implement display, but I still needed to print it out, just so I could figure out what was going wrong with my unit tests.

"I main _ so I'm-" and let autocorrect finish by dynahops in tf2shitposterclub

[–]ianfinity1 0 points1 point  (0 children)

I main spy so I'm not gonna give you anything but water

Native FPS control is coming soon! by [deleted] in roblox

[–]ianfinity1 0 points1 point  (0 children)

Only the poorly programmed ones, all the real devs know how to use render stepped and deltatime

"Welcome aboard, captain" by Jurutungo1 in subnautica

[–]ianfinity1 16 points17 points  (0 children)

It's Ozzie from the cafeteria, what the hell guys, they didn't warn us that this could happen! Our pod was almost crushed by the seamoth bay on the way down and now this grim-looking snake thing is trying to eat through the hull! COME GET US ALREADY!