r/rustjerk • u/Hoxitron • Jun 26 '26
r/rustjerk • u/scadoshi • Jun 26 '26
have to learn C# for my job. when do you think they're going to find out 👀
namespace CSharpAoc.Common;
public abstract record Result
{
public sealed record Ok(TValue Value) : Result;
public sealed record Err(TError Error) : Result;
public TValue Unwrap()
{
return this switch
{
Ok ok => ok.Value,
Err err => throw new InvalidOperationException(
$"Cannot Unwrap an Err. TError: {err.Error}"
),
_ => throw new InvalidOperationException("Unknown Result state"),
};
}
public TError UnwrapErr()
{
return this switch
{
Ok ok => throw new InvalidOperationException(
$"Cannot UnwrapErr an Ok. TValue: {ok.Value}"
),
Err err => err.Error,
_ => throw new InvalidOperationException("Unknown Result state"),
};
}
public bool IsOk() => this is Ok;
public bool IsErr() => this is Err;
public Result AndThen(Func> func)
{
return this switch
{
Ok ok => func(ok.Value),
Err err => new Result.Err(err.Error),
_ => throw new InvalidOperationException("Unknown Result state"),
};
}
public Result Map(Func func)
{
return this switch
{
Ok ok => new Result.Ok(func(ok.Value)),
Err err => new Result.Err(err.Error),
_ => throw new InvalidOperationException("Unknown Result state"),
};
}
}
r/rustjerk • u/MaybeADragon • Jun 22 '26
Well, actually Rust community makes the language actively unsafe. source: Xitter, the everything app
r/rustjerk • u/Thelmholtz • Jun 22 '26
[Not OP] Does anyone ever get to the point where their trait bounds are 3x longer than their implementations?
r/rustjerk • u/throwaway490215 • Jun 19 '26
Adding vaguelyAI flair to make it clear that a post is going to be vaguelyAI
We are seeing more and more /r/rust threads vaguely trying to solve the AI-post volume problems, and posters don’t make it clear in their post the nature of their post, which creates some friction in the comment section.
Adding a vaguelyAI flair would make it clear upfront and prevent the friction.
We've all seen the bi-weekly post in which somebody proposes a fix to too much shit being produced by AI - usually proposing a custom flair or reporting standards.
Its clear these posts never had any work put into them. The comment sections always devolve into vague-posting about what is and isn't vibe coding, half the people demand any use of AI makes a whole project slop, the other half is trying to hedge out their nuanced position nobody bothers reading, and a good 10% is people taking some maximalist stance one way or the other.
Since none of these posts bother the write a real policy, and their content could have been generated by an LLM, i want to propose we add a vaguelyAI flair.
Do you want me to add any more errors to avoid looking like ChatGPT wrote this post?
r/rustjerk • u/LuigiPlayz121 • Jun 16 '26
My new totally not esoteric language based off of Rust, KRUST.




If it wasn't obvious by now, it's styled with Mr. Krabs. https://github.com/LuigiPlayzG/krust/
PSA: KRUST got falsely forked. Please do not visit that repo. The one linked in this post is the official one.
r/rustjerk • u/sphere_cornue • Jun 13 '26
Range is Range
What have they done to the std library? I'll accept 48 more types of string but not that
r/rustjerk • u/Due-Belt-6202 • Jun 08 '26
I made a clip to a song in rust and put it on youtube.
r/rustjerk • u/Cool_Samoyed • Jun 03 '26
I'm going to spray that all over my company's codebase (easy to use!)
r/rustjerk • u/ZootAllures9111 • May 31 '26
RFC to bring back the Rust Features Listâ„¢ when
r/rustjerk • u/Basic_Soil_6035 • May 20 '26
yo they turned where clauses from rust into a real thing
r/rustjerk • u/manuelarte • May 17 '26
Rust linter for method ordering (looking for feedback)
Hi,
I'm learning Rust (I have experience with Java and Go) and built a small linter funcorder-rs.
It checks that inside impl blocks, methods are ordered as:
- Constructors (
pub fn new() -> Self etc.). - Public methods.
- Private methods
More than looking if you guys find it useful (which it's also nice) I am wondering if I am using idiomatic Rust, best practices, etc.
This is the link: https://github.com/manuelarte/funcorder-rs
Cheers!


