Ogeon
@Ogeon@programming.dev
This is a remote user, information on this page may be incomplete. View at Source ↗
- Comment on I am going to miss the mute and power buttons when they take them away. 7 months ago:
Ah, taking inspiration from late 1940’s literature, I see.
- Comment on Return Generic Type in Rust 1 year ago:
It may be possible to use the
Any
trait to “launder” the value by first casting it to&Any
and then downcasting it to the generic type.let any_value = match tmp_value { serde_json::Value::Number(x) => x as &Any, // ... }; let maybe_value = any_value.downcast_ref::();
I haven’t tested it, so I may have missed something.
- Comment on Stop doing Computer Science 1 year ago:
To make things worse, that teapot doesn’t have a bottom surface.