wulf
@wulf@lemmy.world
This is a remote user, information on this page may be incomplete. View at Source ↗
- Comment on Project Kuiper: Amazon's answer to SpaceX's Starlink passes 'crucial' test 10 months ago:
Call me a socialist, but the moment the tech was proven either the US or some UN based org should have eminent domained and brought Starlink.
That way there wouldn’t be multiple companies sending tens of thousands of satellites into space. And hypothetically there would be a greater expectation of equal access. Oh and access wouldn’t be at the whim of a pretty billionaire.
- Comment on Return Generic Type in Rust 1 year ago:
SOLUTION:
Here is the solution I came up with:
pub struct Configuration {} impl Configuration { fn get std::str::FromStr>() -> Result { Ok(T::from_str("1234"); } } fn main() { let my_conf_val = Configuration::get(); }
- Comment on Return Generic Type in Rust 1 year ago:
Afraid this might have been the case, if Ogeon’s suggestion doesn’t work out, I’ll probably end up with multiple getters, one per type. There aren’t that many anyway
- Comment on Return Generic Type in Rust 1 year ago:
Correct, I would want the caller to know what they’re getting, I’ll see if this works, Thank you!
- Submitted 1 year ago to programming@programming.dev | 8 comments